DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: cast (date as int)??

Threaded View

  1. #4
    Join Date
    Jan 2004
    Posts
    162
    Looks like SQL Server is returning days since 01/01/1900, so I think you would just adjust for the difference between that and Julian Date base, e.g.
    Code:
    SELECT TO_NUMBER (TO_CHAR (:some_date, 'J')) - 2415021
    FROM   dual;
    Last edited by padders; 03-07-2005 at 06:24 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width