Hello,
I am trying to add Date and Current time to a name of a log file. I
tried doing this:
string logDateExtention = DateTime.Now.ToShortDateString().ToString() +
DateTime.Now.ToShortTimeString().ToString();
string logName = Data.Name + Data.ProductName + logDateExtention;
And this throws exception during the debug that the name is not legal
probably because of the ":" or "/" . Which format of date will work for
this purpose?
Thanks!
*** Sent via Developersdex
http://www.developersdex.com ***