Collections:
UTC_DATE() - Current UTC Date
How to obtain the current UTC date using the UTC_DATE() function?
✍: FYIcenter.com
UTC_DATE(datetime) is a MySQL built-in function that
returns the current UTC date.
For example:
SELECT UTC_DATE(), NOW(), @@system_time_zone; -- +------------+---------------------+--------------------+ -- | UTC_DATE() | NOW() | @@system_time_zone | -- +------------+---------------------+--------------------+ -- | 2023-11-16 | 2023-11-15 23:12:44 | EST | -- +------------+---------------------+--------------------+
Reference information of the UTC_DATE() function:
UTC_DATE(): date Returns the current UTC date as a value in 'YYYY-MM-DD' or YYYYMMDD format, depending on whether the function is used in string or numeric context. Arguments, return value and availability: date: Return value. The current UTC date. Available since MySQL 4.
Related MySQL functions:
⇒ UTC_TIME() - Current UTC Time
⇐ UNIX_TIMESTAMP() - Calculating Unix Timestamp
2023-11-17, 1965🔥, 0💬
Popular Posts:
What Are the Differences between DATE and TIMESTAMP in Oracle? The main differences between DATE and...
How To Divide Query Output into Multiple Groups with the GROUP BY Clause in SQL Server? Sometimes, y...
What are DDL (Data Definition Language) statements for tables in SQL Server? DDL (Data Definition La...
How To Start Instance with a Minimal Initialization Parameter File in Oracle? The sample initializat...
How To Find Out What Privileges a User Currently Has in Oracle? Privileges granted to users are list...