I have date format in my local machine : (d/M/yyyy h:mm tt) ==> (23/6/2011 4:30 PM)
when i publish my website on IIS server it converts date format to (M/d/yyyy H:mm)
i changed the date and time formats of the server but it's not affected . i changed the culture of the website to English US time format solved but date not. (M/d/yyyy hh:mm tt) i changed the culture of the website to English UK date format solved but time not. (d/MM/yyyy H:mm)
what is the solution to make it's format like my local format ???!!!
Open Control Panel, and then click Date, Time, Language, and Regional Options. Click Regional and Language Options. On the Regional Options tab, click Customize. On the Date tab, next to Short date format, select a short date format.
In "Control Panel\All Control Panel Items\Region and Language", on the "Formats" tab, click "Additional settings..." button.
- Open IIS 7 - Select your website - Open .NET GLOBALIZATION - From Culture tab, select required Culture and UI Culture. - Do iisreset
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With