Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date format in VB.NET
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00790262
Message ID:
00790339
Views:
21
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.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform