Richard White wrote:
> i was under the impression that if i set a locale as English UK and then used
> the follwing code:
>
> lsdateformat("07/24/1978","dd/mm/yyyy") that it would convert this date into
> 24/07/1978
> but i am getting an error '07/24/1978 is an invalid date format' but if i use
> dateformat instead of lsdateformat then it converts it fine
>
> it seems to me that lsdateformat function takes an english uk formated date
> (dd/mm/yyyy)
Taking some string input and converting that to a date object is what
ParseDateTime() and LSParseDateTime() are for. All other date and time
functions should not be fed string input but date objects. (And if you
have to use string input, use the yyyy-mm-dd format.)
Jochem
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:297518
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4