tarleaa
14 years agoContributor
aqDateTime issue
Hello,
have a problem with the way aqDateTime object adds a month.
Here is the code and the result:
var todayPlusMth = aqConvert.DateTimeToFormatStr(aqDateTime.AddMonths(aqDateTime.Today(), +1), "%#m/%#d/%Y");
Log.Message(todayPlusMth);
var tomorrow= aqConvert.DateTimeToFormatStr(aqDateTime.AddDays(aqDateTime.Today(), +1), "%#m/%#d/%Y");
Log.Message(tomorrow);
var tomorrowPlusMth = aqConvert.DateTimeToFormatStr(aqDateTime.AddMonths(tomorrow, +1), "%#m/%#d/%Y");
Log.Message(tomorrowPlusMth);
Type Message Time Priority Has Picture Link
12/1/2011 15:47:10 Normal
11/1/2011 15:47:10 Normal
12/1/2011 15:47:10 Normal
Most likely this issue will not be there if tomorrow I will run the same script, but this is still an issue.
Regards,
Andrei
have a problem with the way aqDateTime object adds a month.
Here is the code and the result:
var todayPlusMth = aqConvert.DateTimeToFormatStr(aqDateTime.AddMonths(aqDateTime.Today(), +1), "%#m/%#d/%Y");
Log.Message(todayPlusMth);
var tomorrow= aqConvert.DateTimeToFormatStr(aqDateTime.AddDays(aqDateTime.Today(), +1), "%#m/%#d/%Y");
Log.Message(tomorrow);
var tomorrowPlusMth = aqConvert.DateTimeToFormatStr(aqDateTime.AddMonths(tomorrow, +1), "%#m/%#d/%Y");
Log.Message(tomorrowPlusMth);
Type Message Time Priority Has Picture Link
12/1/2011 15:47:10 Normal
11/1/2011 15:47:10 Normal
12/1/2011 15:47:10 Normal
Most likely this issue will not be there if tomorrow I will run the same script, but this is still an issue.
Regards,
Andrei