Javatpoint Logo
Javatpoint Logo

MySQL CURRENT_DATE() Function

The current_date() is a MySQL date/time function. It is used to get the current date.

Syntax

Parameters

NA

Returns

The 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 1

Output:


MySQL CURRENT_DATE() Function

Example 2

Output:


MySQL CURRENT_DATE() Function
Next TopicMySQL date/time




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA