C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
MySQL CURRENT_DATE() FunctionThe current_date() is a MySQL date/time function. It is used to get the current date. Syntaxselect current_date(); ParametersNA ReturnsThe current_date() function returns the current date. It will return the current date as a 'YYYY-MM-DD' format if used in a string context. It will return the current date as a YYYYMMDD format if used in a numeric context. Example 1select current_date(); Output: Example 2select current_date()+2; Output:
Next TopicMySQL date/time
|