Functions that return dates
| Functions that return dates | Description | Example |
|---|---|---|
|
|
Returns today’s date |
|
|
|
Returns the current time |
|
|
|
Returns the current timestamp value |
|
|
|
Converts a character string to a timestamp |
|
|
|
Returns today’s date |
If today is 11/21/2028, |
|
|
Converts a character string to a date |
|
|
|
Add or subtract an interval value of a specified unit type ( |
|
Notes
-
The
DATE()function is deprecated. Use the SQL standardCURRENT_DATEinstead. -
The
INTERVALfunction cannot be used in isolation. You must add or subtract to a date or time value in order to avoid an error.