1)-now() function is used for current date and time.
Syntax
now()
Example
SELECT now();
Output
2022-05-20 12:05:07
2)-CURDATE() function is used for current date.
Syntax
CURDATE()
Example
SELECT CURDATE();
Output
2022-05-20
Copyright ©2022 coderraj.com. All Rights Reserved.