Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validating date field
Message
De
18/07/2003 12:49:32
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00811507
Message ID:
00811547
Vues:
11
>Dmitry,
>
>You need to use the Format and Parse methods. See message #670154 for an explanation. The example is how to format for currency. For dates you would use the ToString("d") instead.
>
>>What do you do to present a data field in a textbox?
>>I don't see a "native" way to display it as "mm/dd/yyyy".
>>
>>So do you just let the user type the date (maybe indicating with the label that the expected format is 'mm/dd/yyyy'?
>>And then validate the date entry?

Adding to Cathi's answer, yes, you let the user type the date and then validate the date entry.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform