Hmmm... too bad.

Yeah, CreateDate() assumes that I already have the day month and year
broken out into their respective pieces.  Of course, given the mask and
some regex it wouldn't be impossible, but I wanted to look for pre-built
solutions before I tried it myself.

I'm a little fuzzy on exactly what parsedatetime does for me.  
Supposedly it accepts "A string containing a date/time value formatted
according to U.S. locale conventions."
Ok, great.  What the crap are "U.S. locale conventions"?
Yes, Rick, I googled it and really didn't find anything at all useful.
=) 
The example at the bottom of the live docs doesn't really show sample
input.
And then there's the "pop-conversion" input.  It seems to only affect
time zones, but again-- the live docs don't actually show an example
which uses it.

Either way, I'm pretty certain parsedatetime can only be used with a
fairly standardized string like mm/dd/yyyy.  

I think my best bet might be to iterate over the mask finding the
individual pieces, strip out the corresponding characters from the
string, and then piece them back together with createdate().  

That is, unless someone can show me that has already been written
somewhere.
If I can get it working, I will post the code for public shredding.  :)

~Brad

-----Original Message-----
From: Andy Matthews [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 17, 2007 4:50 PM
To: CF-Talk
Subject: RE: date UN-mask

There's also ParseDateTime which returns a date object from a string.
But I
used your example and it didn't pass muster. 

-----Original Message-----
From: Andy Matthews [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 17, 2007 4:46 PM
To: CF-Talk
Subject: RE: date UN-mask

You tried CreateDate()? 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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

Reply via email to