Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validate a date
Message
De
15/07/2006 10:57:45
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
15/07/2006 10:52:48
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Versions des environnements
Environment:
ASP.NET
Divers
Thread ID:
01136539
Message ID:
01136679
Vues:
9
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform