It's probably not the most correct solution, but I use something like this
to vaildate European dates:
<cftry>
#createdate(#listgetat("#userdate#",3,"-")#,#listgetat("#userdate#",2,"-")#,
#listgetat("#userdate#",1,"-")#)#
<cfcatch blablabla...
</ctry>
There are probably more efficient ways to do this, but this works fine for
me. Hope it helps.
Jille
-----Original Message-----
From: Tristram Charnley [mailto:[EMAIL PROTECTED]]
Sent: woensdag 3 april 2002 13:37
To: CF-Talk
Subject: CF doing strange things with dates
I want users to enter dates in forms using European format dates
(dd/mm/yy).
But CF is converting dates on or before the 12th of the month to the US
format - {d '2002-12-04'} while dates after the 12th are being formatted as
European - {d '2002-04-13'}
This happens with both CreateODBCDate and CFQUERYPARAM.
Unless I'm missing something this makes Eurodate validation pretty
pointless...
Any suggestions?
Tristram Charnley
---------------------------
[EMAIL PROTECTED]
Allaire Certified ColdFusion Developer
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists