Can the dateAdd mapper utility be used to subtract time? In other words, could any of the integers in parameters 4-9 be negative? Ultimately I would like to input the first of a particular month and go back one day in order to find the date of the last day of the previous month.
Something like this:
java:MapperUitlityClass.dateAdd('2015-12-01 10:10:00', 'yyyy-MM-dd HH:mm:ss', 'MM-dd-yyyy HH:mm:ss', 0, 0, -1, 0, 0, 0)
and the output would be '2015-11-30 10:10:00'
Post is closed for comments.