DATE and TIME Expressions
Three data types allow you to work with a DATE, TIME, or TIMESTAMP.
DATE represents the date as MM/DD/YYYY, DD.MM.YYYY, or YYYY-MM-DD.
TIME is represented as HH:MM AM, HH.MM.SS, or HH:MM:SS.
TIMESTAMP contains the date and time combined.
> The only arithmetic operations that can be performed on DATE/TIME values are addition and subtraction.
> A labeled duration (key words such as YEAR(S), MONTH(S), DAY(S), HOUR(S), MINUTE(S), and SECOND(S)) and other key words such as CURRENT DATE, and CURRENT TIME can be used as part of the calculation.
> The operands must be DATE/TIME data types, or use DECIMAL defined equivalents of DECIMAL (8,0) for date duration, and DECIMAL (6,0) for time duration.
You will learn more about data types in Data Definition.