Hi,
I m using date picker control in my windows application. i want to set the date time format according to the regional settings of the system. can someone please help me in resolving this issue.
Hi,
I m using date picker control in my windows application. i want to set the date time format according to the regional settings of the system. can someone please help me in resolving this issue.
Know the answer? Post it. Somebody with the same question will find it here.
Niradhip ChakrabortyRank #428 · 5.8K pointsPosted Feb 22, 2009, 11:37 AM EST
setting checks. The following code excerpt will output the short date format
for the current user (dd/MM/yyyy for en-GB):
using System.Globalization;
.....
CultureInfo ci = CultureInfo.CurrentCulture;
Console.WriteLine(ci.DateTimeFormat.ShortDatePatte rn);