/// <summary> /// Receives a Date as a parameter and returns a string of that date and time. /// (Use MyDate.ToShortDateString() and MyDate.ToShortTimeString() instead) /// </summary> /// <param name="dDate"></param> /// <returns></returns> public static string TTOC(System.DateTime dDate) { return String.Concat(dDate.ToShortDateString(), " ", dDate.ToShortTimeString()) ; }>I need to include the whole datetime system value into a string but formatted in YYYYMMDDHHMMSS format, I'm sure this is really easy to do in C#...but I haven't found it yet. Hoping someone knows off the top of their head.
string DateString = System.DateTime.Now.ToString()>