Check out example codes for "mysql curdate". It will help you in understanding the concepts better.

Code Example 1


Code Example 2

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()

Learn ReactJs, React Native from