CURDATE() Function in MySQL Last Updated : 28 Aug, 2023 Comments Improve Suggest changes Like Article Like Report 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(); Parameter This method does not accept any parameter.Returns It returns the current date.QueryGetting the current date in the format of YYYY-MM-DD (string). SELECT CURDATE();Output output 1QueryGetting the date 1 day later than the current date in the format of YYYYMMDD (numeric). SELECT CURDATE() + 1;Output output 2QueryGetting the date of 5 days before of current date in the format of YYYYMMDD (numeric). SELECT CURDATE() + 5;Output output 3QueryIf you want to subtract the desired number of days from the current date using CURDATE() function. SELECT CURDATE() -22;Outputoutput 4Applications of CURDATE() FunctionThis function is used to get the current date or the specified number of days before or after the current date in the two different formats of YYYY-MM-DD (string) or as YYYYMMDD (numeric). you can also use CURDATE() function to find the differences between two dates.you can also use the CURDATE() function to filter the records from the database.you can also use the CURDATE() function to set as a default value for a date. Comment More infoAdvertise with us Next Article CURDATE() Function in MySQL K Kanchan_Ray Follow Improve Article Tags : Misc SQL DBMS-SQL mysql Practice Tags : Misc Similar Reads CURTIME() function in MySQL CURTIME() function in MySQL is used to check the current time. It returns the current time as a value in âhh:mm:ssâ or 'hhmmss' format, depending on whether the function is used in a string or numeric context. Syntax : CURTIME(fsp) Parameters : This method accepts only one parameter. fsp - It specif 2 min read CURRENT_DATE() Function in MySQL In this article, you will see how you can use the current_date function and you will see both formats in the string and numeric respectively. CURRENT_DATE : In this function, you will see how you can use the current date function. In MSQSSL, format of date 'âYYYY-MM-DDâ(in string) format or YYYYMMDD 1 min read COUNT() Function in MySQL The COUNT() function in MySQL is a versatile aggregate function used to determine the number of rows or non-NULL values that match a specific condition in a query. It can be applied to an entire table or a particular column and is widely used in database operations to analyze the volume of data in a 3 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 COT() Function in MySQL COT() function : This function in MySQL is used to return the cotangent of a specified number. If the specified number is 0, an error or NULL will be returned. In a right triangle, the cotangent of an angle is the length of it's adjacent side divided by the length of the opposite side. Similarly, th 1 min read Like