You need to sign in to do that
Don't have an account?
StormConsulting
Add 1 day to a Datetime object
Is it possible to add a day to a Datetime variable, for example myDate contains 31/08/2008, how can I add one day to it, which will make it become 01/09/2008?
Cheers
Cheers
There is a method called addDays().
This method will respect adding a day that might push the date to the next month.
System.Debug(t);
08:29:18 INFO - 20080702152918.067:AnonymousBlock: line 2, column 1: 2008-07-03 15:29:18