Forum Discussion
makula
11 years agoOccasional Contributor
Hi Phil,
I know the method you have mentioned to format the date/time to string. The thing is when we use aqConvert.DateTimeToStr(aqDateTime.Today() )it returns current date, only date is logged in log file without any explicit format [aqConvert.DateTimeToFormatStr(aqDateTime.Today(), "%m/%d/%y"));] but when we use aqConvert.DateTimeToStr(aqDateTime.Time()) why only time is not returned. Hope you got my point. Hope the image attached gives you info about what am I asking.
the Jscript used is :
Log.Message('Current date and time is '+aqConvert.DateTimeToStr(aqDateTime.Now()));
Log.Message('Current time only '+aqConvert.DateTimeToStr(aqDateTime.Time()));
Log.Message('Current date only '+aqConvert.DateTimeToStr(aqDateTime.Today()));
Thanks,
Mamatha
I know the method you have mentioned to format the date/time to string. The thing is when we use aqConvert.DateTimeToStr(aqDateTime.Today() )it returns current date, only date is logged in log file without any explicit format [aqConvert.DateTimeToFormatStr(aqDateTime.Today(), "%m/%d/%y"));] but when we use aqConvert.DateTimeToStr(aqDateTime.Time()) why only time is not returned. Hope you got my point. Hope the image attached gives you info about what am I asking.
the Jscript used is :
Log.Message('Current date and time is '+aqConvert.DateTimeToStr(aqDateTime.Now()));
Log.Message('Current time only '+aqConvert.DateTimeToStr(aqDateTime.Time()));
Log.Message('Current date only '+aqConvert.DateTimeToStr(aqDateTime.Today()));
Thanks,
Mamatha