Check out example codes for "mariadb cast date". It will help you in understanding the concepts better.

Code Example 1

CAST( column_name AS DATE )

Learn ReactJs, React Native from akashmittal.com