How to display a date in a specfic language.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Rahul Kumar SaxenaRank #36 · 36.5K reputationPosted Dec 17, 2008, 6:55 PM EST
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));