Check out example codes for "sql current date". It will help you in understanding the concepts better.

Code Example 1

In MySQL the CURDATE() returns the current date in 'YYYY-MM-DD' format or 'YYYYMMDD' format depending on whether numeric or string is used in the function. CURRENT_DATE and CURRENT_DATE() are the synonym of CURDATE()

Code Example 2

GETDATE()

Code Example 3

SELECT getdate()

Code Example 4

Add GETDATE() in sql query where you want to pass current timestamp.

Example
Return the current database system date and time:

SELECT GETDATE();

Code Example 5

SELECT NOW();
It returns current date and time.

Code Example 6

SELECT GETDATE();

Learn ReactJs, React Native from akashmittal.com