Maybe this will get you started on where to go. I use this in a project to save the date and time with the file name.

myString = DateTime.Now.ToString("yymmddhhmmss")