Why not use list boxes for your date fields? That will solve your 2 digit
year problem and also get rid of a lot of other validation.
Todd Ashworth
----- Original Message -----
From: "Jennifer" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, January 17, 2001 11:42 AM
Subject: Re: Date problem
| At 03:26 PM 1/17/01 +0000, you wrote:
|
| >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?
|
| I haven't come across this but I do see an issue in your example that
might
| cause it. The first part of a date (in US format which is the default) is
| the month and there is no 17th month. Perhaps CF server recognizes that 17
| is not a month and decides that it must be a year instead.
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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