Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: pl/sql julian date conversion
A copy of this was sent to tobrien5578_at_my-dejanews.com
(if that email address didn't require changing)
On Tue, 13 Oct 1998 13:22:40 GMT, you wrote:
>Does anyone have pl/sql code to convert julian dates to gregorian (regular)
>dates?? Any tips are appreciated.
>
>-----== Posted via Deja News, The Leader in Internet Discussion ==-----
>http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
To convert a 'regular' date into julian you would:
SQL> select to_char( sysdate, 'j' ) from dual;
TO_CHAR
and then to take a julian and get a 'regular' date back you would:
SQL> select to_date( 2451100, 'j' ) from dual;
TO_DATE(2
--
http://govt.us.oracle.com/ -- downloadable utilities
Anti-Anti Spam Msg: if you want an answer emailed to you, you have to make it easy to get email to you. Any bounced email will be treated the same way i treat SPAM-- I delete it. Received on Tue Oct 13 1998 - 08:48:02 CDT