Just place a <pages culture="Auto" /> element in your Web.config (under the system.web element) and each user will get the dates formatted to their own preferences.
If you want all users to get a dd/mm/yyyy format, just write <pages culture="fr-FR" /> for instance...
Hope this helps,
Arnaud
localizationDates formatToString
Microsoft .net Training and Consulting
http://www.dreamdotnet.com/
Marked as answer by Kevin Yu - MSFT on May 14, 2007 08:22 AM
aweil
Member
725 Points
118 Posts
Re: Convert Date Format from mm/dd/yyyy to dd/mm/yyyy
May 11, 2007 05:12 AM|LINK
Hi,
Sure, there's a simpler way to go!
Just place a <pages culture="Auto" /> element in your Web.config (under the system.web element) and each user will get the dates formatted to their own preferences.
If you want all users to get a dd/mm/yyyy format, just write <pages culture="fr-FR" /> for instance...
Hope this helps,
Arnaud
localization Dates format ToString
http://www.dreamdotnet.com/