Date and Time Operators

The following operators act on dates and times.

Date and Time Operators
Operator Action Code

+

Addition

 CopyCode imageCopy Code
tNewTime = tTime1 + nSeconds
dNewDate = dDate1 + nDays

-

Subtraction

 CopyCode imageCopy Code
nSeconds = tTime1 - tTime2
tNewTime = tTime1 - nSeconds
dNewDate = dDate1 - nDays

Expand imageSee Also


© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic