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, 1511🔥, 0💬
Popular Posts:
How To Create a Table Index in Oracle? If you have a table with a lots of rows, and you know that on...
Where to find Oracle database server tutorials? Here is a collection of tutorials, tips and FAQs for...
What Are Out-of-Range Errors with DATETIME values in SQL Server Transact-SQL? When you enter DATETIM...
How AdventureWorksLT tables are related in SQL Server? There are 12 user tables defined in Adventure...
Where to find answers to frequently asked questions on Transaction Management: Commit or Rollback in...