Hey there, I am extracting the date and time of creation of a file. the date should be 7/1/2010 2:08 PM but the format comes out as 2:08:07 01/07/2010 when called from my application. I would like it show as it does in the file explorer (7/1/2010 2:08 PM). How can I accomplish this?
string createdOnCMM = Creationtime; //this returns the 2:08:07 01/07/2010
// I think I need a modified verison of the following to reformat it
DateTime dt = Convert.ToDateTime(createdOnCMM);
String.Format("0:{dd/MM/yyyy HH:mm:ss}", dt);