> From: Ken Ferguson [mailto:[EMAIL PROTECTED] > But you can accept that value just fine -- it's a date. > <cfset d = "July 26, 2005"> > <cfset newd = dateFormat(d, "mm/dd/yyyy")> > > yields: 07/26/2005 > > So you have no problems here. As long as you're checking for > validity, you're good to go. Now you only have to worry about > handling the instances where some knucklehead puts 03.07.2005 > in the field expecting it to yield July 7th instead of March > 7th., but you've got to draw the line somewhere, right?
If that is a possibility, which it almost always is, I would stick with the locale neutral format of YYYY-MM-DD and then the US versus European formats are a moot point. :-) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211325 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54