Compartir a través de


Date and Time Operators

The following operators act on dates and times.

Date and Time Operators

Operator

Action

Code

+

Addition

tNewTime = tTime1 + nSeconds
dNewDate = dDate1 + nDays

-

Subtraction

nSeconds = tTime1 - tTime2
tNewTime = tTime1 - nSeconds
dNewDate = dDate1 - nDays

See Also

Reference

Date Data Type (Visual FoxPro)

DateTime Data Type

Date and Time Functions

Operators (Visual FoxPro)