Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validate a date
Message
From
15/07/2006 10:57:45
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
15/07/2006 10:52:48
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Environment versions
Environment:
ASP.NET
Miscellaneous
Thread ID:
01136539
Message ID:
01136679
Views:
8
>>Forcing the user enter a date in a specific format is not a good idea IMHO. You could try Parse to validate or use a CompareValidator for type checking.
>
>From a Web page, if we do not apply a format, how can we interpret 06/08/07 to know that this is suppose to be dd/mm/yy or something else?

Good, I think cultureinfo etc would take care of it. Otherwise what logic says that it's June or August? If I'm entering the date from a browser in Europe I'd naturally think it's June or 13/01/2000 is a valid date (actually I'd think like that if my settings are for Europe).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform