Hi
string date="8/13/2010"; // mm/dd/yyyy
System.Globalization.CultureInfo ci =System.Threading.Thread.CurrentThread.CurrentCulture;
string CurrDateFormat = ci.DateTimeFormat.ShortDatePattern.ToString() -- **// dd/mm/yyyy**
DateTime dt=Convert.ToDateTime(date); ***// Exception : In valid date time format***
date=dt.ToString(CurrDateFormat ,ci);
This is the code i written.
I want to display DateTime in UI as per the current Culture Date Time Format
Please help me how to solve the problem.
Thanks Kiran G