How to display a date in a specfic language.
How to display a date in a specfic language.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rahul Kumar SaxenaPosted Dec 17, 2008, 11:55 PM
I got it,
Add this namespace to ur page
using System.Globalization;
CultureInfo ci = new CultureInfo("en-US");
DateTime dt = DateTime.Now;
Response.Write(dt.ToString("f", ci));
Response.Write("
");
DateTime dt2 = DateTime.MinValue;
Response.Write(dt2.ToString("f", ci));