I've been trying to convert a date to Indian format with CultureInfo as hi-IN. I am trying the below code, but I am not getting successful result. What am I missing?
//item.Value=2/27/1998 3:56:98
DateTime.ParseExact(item.Value, "dd/mm/yyyy", System.Globalization.CultureInfo.GetCultureInfo("hi-IN"))
I even tried this:
TimeZoneInfo timeZoneInfo;
DateTime dateTime;
//Set the time zone information to US Mountain Standard Time
timeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById("India Standard Time");
//Get date and time in US Mountain Standard Time
dateTime =
TimeZoneInfo.ConvertTime(Convert.ToDateTime(item.Value), timeZoneInfo);
Is there any way I can get the date format in "dd/mm/yyyy"?