Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date format in VB.NET
Message
De
20/05/2003 00:24:01
 
 
À
20/05/2003 00:19:12
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00790262
Message ID:
00790279
Vues:
26
Off the top of my head, I don't really know. Maybe Cathi will jump in here ... she always seems to have the right answers. <g>

~~Bonnie

>>I'm not sure if it's the same in VB as it is in C#, but in C# a datetime object can be manipulated with various methods to get the date in various formats. I don't know if this answers your question or not.
>
>What I meant is where the default format is coming from? For example, presently, inside the ASP.NET Web Service, whatever date I received, is received in dd/mm/yyyy. I'm just wondering where this setting is coming from.
>
>To be sure, I have defined this small function which always return the date in the format I want:
>
>
>' Return the date in French format
>' expD1 Date
>Private Function GetDate(ByVal tdDate As Date) As Date
>   Return Format(tdDate, "dd/MM/yyyy")
>End Function
>
>
>But, I was just curious to know if this is coming from the OS setting or from a setting inside the Web Service environment.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform