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

Code Example 1

DATE : YYYY-MM-DD format
DATETIME : YYYY-MM-DD HH:MM:SS format
TIMESTAMP : X s from 1970 format
TIME : HH:MM:SS format

Learn ReactJs, React Native from akashmittal.com