Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date format in VB.NET
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00790262
Message ID:
00790503
Vues:
24
Hi Cathi,

I thought maybe that was the case, but I hate to give an answer when I don't know for sure. Thanks for clearing that up. =)

~~Bonnie


>Hi Michel and Bonnie,
>
>The settings "should" be coming from the user's regional settings in Control Panel.
>
>>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
Répondre
Fil
Voir

Click here to load this message in the networking platform