datediff() Aggregate function used for calculate the number of days between two dates.
Example
SELECT DATEDIFF('2022-10-12', '2022-03-21') as days
Coderraj is the global online platform and circle for programmers to learn, communicate, share their knowledge and growth their careers.
Copyright ©2022 coderraj.com. All Rights Reserved.