UTC_DATE() function in MySQL Last Updated : 07 Oct, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report UTC_DATE() function in MySQL is used to check current Coordinated Universal Time (UTC) date. It returns the UTC date value in 'YYYY-MM-DD' or YYYYMMDD format, depending on whether the function is used in string or numeric context. Syntax : UTC_DATE OR UTC_DATE() Parameter : This method does not accept any parameter. Returns : It returns the current Coordinated Universal Time (UTC) date. Example-1 : Getting the current UTC date using UTC_DATE Function. SELECT UTC_DATE as CurrUtcDate ; Output : CurrUtcDate 2020-10-01 Example-2 : Getting the current time using UTC_DATE Function in numeric format. SELECT UTC_DATE + 0 as CurrUtcDate ; Output : CurrUtcDate 20201001 Example-3 : The UTC_DATE function can be used to set value of columns. To demonstrate create a table named DeliveryDetails. CREATE TABLE DeliveryDetails ( DeliveryId INT AUTO_INCREMENT, ProductId INT NOT NULL, ProductName VARCHAR(20) NOT NULL, Delivered_On DATE NOT NULL, PRIMARY KEY(DeliveryId) ); Here, we will use UTC_DATE function when a delivery will be completed. The value in Delivered_On column will be the value given by UTC_DATE Function. INSERT INTO DeliveryDetails(ProductId, ProductName, Delivered_On) VALUES (101001, 'Asus ROG', CURRENT_DATE); Now, checking the DeliveryDetails table : SELECT * FROM DeliveryDetails; Output : DeliveryId ProductId ProductName Delivered_On 1 101001 Asus ROG 2020-10-01 Comment More infoAdvertise with us Next Article CURDATE() Function in MySQL J jana_sayantan Follow Improve Article Tags : SQL DBMS-SQL mysql Similar Reads STR_TO_DATE() function in MySQL STR_TO_DATE() : This function in MySQL helps to convert string values to date or time or DateTime values. The function will return zero (0000-00-00) if an empty string is passed as an argument. Syntax : STR_TO_DATE(string, format) Parameters : string -The string which will be converted to DateTime. 2 min read ADDDATE() function in MySQL The ADDDATE() function in MySQL is a powerful tool for adding specific time intervals to date or datetime values. It simplifies data manipulation by allowing us to easily calculate future or adjusted dates based on a given starting point. In this article, we will learn about the ADDDATE() function i 3 min read MySQL DATE_SUB() Function The MySQL DATE_SUB() function subtracts a specified time or date interval from a datetime value. DATE_SUB() Function in MySQLThe DATE_SUB() Function in MySQL allows for various date and time calculations by subtracting time intervals. It is used to subtract a specified time or date interval from a g 2 min read CURDATE() Function in MySQL The CURDATE() function in MYSQL is used to return the current date. The date is returned to the format of "YYYY-MM-DD" (string) or as YYYYMMDD (numeric). This function equals the CURRENT_DATE() function. In this article, we are going to discuss about CURDATE() function in detail. Syntax CURDATE(); P 2 min read TO DAYS() FUNCTION in MySQL TO DAYS() : TO DAYS() function in MySQL takes the given date and returns a number of days since year 0 corresponding to the given date.TO DAYS() function can only be used with the dates within the Gregorian calendar. Syntax : TO DAYS(date) Parameters: The function can accept only one argument as sho 1 min read DATE_ADD() Function in MySQL DATE_ADD() function in MySQL is used to add a specified time or date interval to a specified date and then return the date. Syntax: DATE_ADD(date, INTERVAL value addunit) Parameter: This function accepts two parameters which are illustrated below: date - Specified date to be modified. value addunit 2 min read Like