PDA

View Full Version : Date Format..


dspestatea4
05-16-2008, 12:23 AM
Hello All,

I have small problem with the date format. Since we are in UK we need to display the date format in the UK format. Since your server dispaly the date format in US stlye is there any way to display them automatically in UK format.

Any cofig's to be made in Web.config file or could you tel me any solutions please.

Thanks
Vishnu V.

bruce
05-20-2008, 05:12 AM
You can use ASP.NET localization to change the format of the date as well as others.

See http://kb.discountasp.net/article.aspx?id=10413

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

dspestatea4
05-20-2008, 07:17 AM
Hi,

Thanks for your reply but the link which you have provided dint solve the problem i asked. I have solved the problem

but if u use this code in the <system.web> it'll solve the problem

<globalization culture='auto' uiCulture='auto' enableClientBasedCulture='true'/> the culture can be changed depends on the format u want..

like EN-UK or EN-US.

bruce
05-21-2008, 11:33 AM
oops.. i posted the wrong link... it was supposed to be a MSDN article.

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)