Forum Discussion
Dmitry_Nikolaev
Staff
14 years ago
Hi Anil,
The reason for this is the fact that the date contains slashes, and the time contains colons that are not allowed in file names. To avoid them, use the aqConvert.DateTimeToFormatStr method, the second parameter of which is the date and time format without slashes and colons, for example:
DatenTime = aqConvert.DateTimeToFormatStr(NowValue, "%m-%d-%Y %H_%M")