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

Code Example 1

SELECT DATE_FORMAT(created_at, '%Y-%m-%d') as ymd

Learn ReactJs, React Native from akashmittal.com