Dates are normally stored as a float value (i.e. has decimal places)

if you use an integer, you would loose any time information because the
decimal values represent time, and the whole number values represent days.

So, if you just need a date, without the time, yes, you can convert to an
integer... um... I'm just not quite sure how to do that with CF.

My two cents worth.

Shawn Grover

-----Original Message-----
From: Tyson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 07, 2001 9:05 AM
To: CF-Talk
Subject: RE: Date as absolute integer?


Spectra uses the following to convert date and time into some numeric
format.

<cfset dtmNow = parseDateTime()+0>

This will return something along the lines of:

37110.4213426

Not an integer, per say, but a numeric representation.

-Tyson

-----Original Message-----
From: Tristram Charnley [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 07, 2001 8:51 AM
To: CF-Talk
Subject: Date as absolute integer?


Is there a way to return a date as an integer
a bit like DayOfYear returns the day of the year as a
number? I'm sure I've seen it done somewhere.


Tristram Charnley
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to