Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DateTime in C# vs VB.NET
Message
 
 
À
18/04/2003 14:26:38
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00779262
Message ID:
00779326
Vues:
9
This works. Thank you very much.

>Use ToShortDateString() or ToLongDateString() methods. For example:
>
>DateTime strDateTime;
>strDateTime = DateTime.Today;
>txtDate.Text = strDateTime.Date.ToShortDateString();
>
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform