Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert a date in a number

Status
Not open for further replies.

claude69

Technical User
Jan 30, 2003
15
0
0
IN
Hi guys, I need to convert a series of Date in a sequence of number, there is someone that have a script precompiled.
Thanks
 
Use Julian dates, see function TO_CHAR in SQL Reference documentation.

Example:
SELECT TO_NUMBER(TO_CHAR (hire_date, 'J')) FROM employees;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top