string s = "28/09/2012 04:00 PM"; DateTime dt = DateTime.ParseExact(s, "dd/MM/yyyy hh:mm tt", CultureInfo.InvariantCulture); s = dt.ToString("dd/MM/yyyy HH:mm");
DateTime dt = Convert.ToDateTime("28/09/2012 04:00 PM"); MessageBox.Show(dt.ToString("dd/MM/yyyy HH:mm"));
string date=DateTime.Today.ToString("dd/MM/yyyy HH:mm");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)