GETDATE
Date function
Last updated
Date function
Last updated
GETDATE returns the current date and time in the current session time zone (UTC by default). It returns the start date or time of the current statement, even when it is within a transaction block. ().
In this function provides the current date and time with nanosecond precision (up to 9 digits) and is timezone-aware.
This function is fully supported in .
For more information about quoted identifiers in functions, .
In Amazon Redshift, the default precision for timestamps is 6 digits (microseconds), while in Snowflake, the default precision is 9 digits (nanoseconds). Due to these differences in precision, itβs important to consider your specific needs when working with timestamps. If you require different precision in either platform, you can use the following options.
Use ALTER SESSION:
Please note that depending on the data type used to store the value obtained with GETDATE(), there may be limitations in precision that could result in a loss of accuracy.
There are no known issues.