>>07/24/1978 is an invalid date format

Ok, now I see what your problem is:
If you're using LSdateFormat, the function (and here is the difference 
with dateFaormat)
expect a date. Since "07/24/1978" is not a date, but a string, CF will 
try to convert it to a date,
but according the "English (UK)" standard, which is "dd/mm/yyyy".
Thus 24 is interpreted as the month, this is what causes the error.

If you use only dateFormat, the date can be interpreted as an American 
date and it works.

You only have two choices:
1. use createDate and pass independently the day, month, year parts as 
substrings of the date.
2. spend a few bucks, save lots of time and hurry to get  CF_convertDate 
here:
http://www.contentbox.com/claude/customtags/convertDate/viewConvertDate.cfm

With only one line of code, you will solve your problem:
<CF_convertDate inputVariable="myDate" inputMask="US" outputMask="EU">
or in function call format:
<CFSET outputDate = convertDate(myDate, "string", "string", "US", "EU")>

-- 
_______________________________________
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297491
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to