Copy and paste the below code in the method where we need to change dd/mm/yyyy to mm/dd/yyyy
IFormatProvider provider = new System.Globalization.CultureInfo("en-CA", true);
string datetime = "24/04/2009";
DateTime dt = DateTime.Parse(datetime, provider, System.Globalization.DateTimeStyles.NoCurrentDateDefault);
Happy Coding :)
Sunday, April 19, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment