I think the proper approach to this problem would be to provide an example of the
proper date format next to the input field, perhaps even pre-popluating the field with
today's date in the proper format.
Then on the page it submits to, use the IsDate() function to determine whether the
date is correctly formatted.
---mark
--------------------------------------------------------------
Mark Warrick
Phone: (714) 547-5386
Fax: (714) 972-2181
Personal Email: [EMAIL PROTECTED]
Personal URL: http://www.warrick.net
Business Email: [EMAIL PROTECTED]
Business URL: http://www.fusioneers.com
ICQ: 346566
--------------------------------------------------------------
> -----Original Message-----
> From: Neil Robinson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 17, 2001 7:26 AM
> To: CF-Talk
> Subject: Date problem
>
>
>
> Apologies if this has already been covered. I'm having a general problem
> with date formats, specifically if a form field is submitted with
> a 2-digit
> year then the subsequent template receives it with the day and year digits
> switched round.
>
> ie 17/01/01 would become 01/01/2017
>
> This doesn't happen if the form field contains a 4-digit year ie
> 17/01/2001,
> but as I'm using cfinput validation it doesn't actually force the user to
> use 4 digits. At present I don't know whether this is a localised setting
> issue or if it's cold fusion or what. Anyone else come across this?
>
> TIA
>
> Neil Robinson
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists