static string dateFormats(DateTime dt) { string outDt; outDt = dt.ToString("dd-MM-yyyy") +" "+ String.Format("{0:t}", dt); return outDt;
DateTime dt= System.DateTime.Now; string format = "dd-MM-yyyy hh:mm tt"; string date = dt.ToString(format);
DateTime dt = DateTime.Now; string sysDate = string.Empty; sysDate = dt.ToString("dd-MM-yyyy") + " " + String.Format("{0:t}", dt);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)