Date format question (1 Viewer)

arage

Registered User.
Local time
Today, 18:47
Joined
Dec 30, 2000
Messages
537
Entering 6/26/01 in my form date field gives 10/01/62. The field has an input mask ## / ## ## and format of mm/dd/yy so how can I allow 6/26/01 to be entered as well as 06/26/01?
 

jimbrooking

Registered User.
Local time
Today, 13:47
Joined
Apr 28, 2001
Messages
210
Suggest you remove the input mask entirely. That way you can enter 6/26 and it will be interpreted as 06/26/01.

You might also change the Format property to something like "mm/dd/yyyy" to obtain a consistent display format, in this case, 06/26/2001.

Jim
 

arage

Registered User.
Local time
Today, 18:47
Joined
Dec 30, 2000
Messages
537
Jim, am I missing something when I said in my original post that the format property was mm/dd/yy? Because you said to use a format property of “mm/dd/yy” is there a difference? Thanks.
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 13:47
Joined
Feb 19, 2002
Messages
43,452
Jim suggested using 4 digit years rather than 2 digit years as you were. I concur. Despite Y2K having happened 1.5 years ago, you still need to be aware of the fact that ALL programs are making an assumption about the century when you just enter a 2 digit year. And although that is not normally a problem, I prefer to "see" the 4 digit year so I can be aware of what was assumed.
 

Users who are viewing this thread

Top Bottom