When you set:
<cfset date1="02/08/2004"> date1 is only a string, not a date. But when you say:
DateFormat(date1,... you are calling a function that expects a date in input.
So CF will try to convert the string into a date before it calls the function.
(Here, for more details, please read this:
http://www.contentbox.com/claude/customtags/convertDate/viewConvertDate.cfm?p=hf )
When converting a string to a date, CF will first suppose it is in American format, ie: mm/dd/yyyy
if it does not work, then it will try the ISO format dd/mm/yy.
In your case, the American format works, and the date will be converted to 08 Feb 2004.
To make sure you have no problem, use CF_dateConvert, or the UDF which come with the tag.
By the way, this tag is free.
--
_______________________________________
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

