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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Question

Status
Not open for further replies.

neomorpheus

Programmer
Mar 9, 2001
47
US
If I have the value of a CreateODBCDate(Now()) as {d '2002-04-16'}. If I wanted to convert this to a numeric type...what should I do??

for eg:

For example, in ColdFusion, a numeric value 37287 will interpret to 1/31/2002.

Now how can I convert my date to numeric?? Thanks


 
<cfset DateEnd = CreateODBCDate(Now())>
this returns the value: {d '2002-04-16'}.

<cfset DateEnd = CreateODBCDate(Now()) + 0>
this returns the value as 37362.
Equivalent to {d '2002-04-16'}.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top