Takes two parameters, Source, Value
Description:
Adds to the DateTime from the Value parameter to the Source.
The Source parameter must be either a proper time value, or a proper datetime value as supported by the [DateTime] attribute.
The Value parameter must be either a time or a datetime (time zone not supported). When specifying a datetime, a space or a T may separate the date from the time. If adding dates only without a time, a T must be used on the right end of the string.
The following date formats are supported by value:
The following time formats are supported by value:
Note: When working with days only, the Greg$ and Greg% functions may be preferred.To subtract datetime instead of add, see the TimeSub$ function.
Examples:
[New] Source = "2022-03-01 13:30"
[New] Tomorrow = TimeAdd$ Source, "1T"
[New] NextMonth = TimeAdd$ Source, "1-T"
[New] TwoSLater = TimeAdd$ Source, "2"
[New] TwoMLater = TimeAdd$ Source, "2:"
[New] TwoHLater = TimeAdd$ Source, "2::"
Html Tomorrow 'equal to "2022-03-02 13:30"
Html NextMonth 'equal to "2022-04-01 13:30"
Html TwoSLater 'equal to "2022-03-01 13:30:02"
Html TwoMLater 'equal to "2022-03-01 13:32"
Html TwoHLater 'equal to "2022-03-01 15:30"