Hello,
I am trying to add Date and Current time to a name of a log file. I
tried doing this:
string logDateExtentio n = DateTime.Now.To ShortDateString ().ToString() +
DateTime.Now.To ShortTimeString ().ToString();
string logName = Data.Name + Data.ProductNam e + logDateExtentio n;
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 ***
Comment