I need to break up date time, currently when I use:
Write(DateTime.Now);
it displays: 5/17/2011 03:30:00 PM
What I need it to look like is: 5/17/2011, 03:30:00 PM
I basically need a comma between the date & time.
My thinking was to parse them and write them separately, but I have been unsuccessful in my attempts.
Any thoughts or suggestions on how to do this.
You can use the
.ToString()method which takes in a format.Here is a nice little reference guide to string formatting