I'm trying to compare dates from a file on the Directory on MAC and the date
that is coming up is in an odd format. I've read through a post in the past
and found this example:
<cfset dateString = "Thursday, October 9, 2003 1:16:58 PM CDT">
<cfset dateObj = ParseDateTime(dateString)>
<cfdump var="#DateCompare(dateObj, Now())#">
The string I get is in this format: Tue Sep 05 14:10:45 CDT 2006
When I use the PaseDateTime() is converts the 2006 to 2001....and shows me
this:
{ts '2001-09-05 04:10:45'}
Any ideas? Am I going to have to go through and re-order the presentation
just to Parse the date properly or is there an easier way?
Thanks,
Matt
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252622
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4