Check out example codes for "mysql extract day from date leading zero". It will help you in understanding the concepts better.

Code Example 1

DATE_FORMAT(field_name,'%Y-%m-%d')

Learn ReactJs, React Native from akashmittal.com