Tony,
If you take a standard date/time and do this to it:
<cfset myDate = evaluate(now() + 0)>
<cfoutput>
#myDate#<br>
#dateformat(myDate, "dd-mmm-yy")#
</cfoutput>
you'll see that evaluate + 0 turns the date/time into a numeric value.
Dateformat turns it back into the appropriate formatted date/time. So if
you feed dateformat a numeric value, it'll convert it into a date. '0' date
is 30-Dec-1899 and each increment from there represents another day.
-----Original Message-----
From: Tony Hicks [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 1 March 2001 5:04 AM
To: CF-Server
Subject: Perplexed
ok 'CF_Superheroes' lol... I am perplexed on how
"Transcript for <b>#DateFormat(id, "mm.dd.yy")#</b>" (id in this case is
022101) can possibly return: 07.04.60 the only thing i can figure is that
maybe its the 4th day of the 7th month of the 60th year since computers have
been in existence?
And is there a way to fix it?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com