Check out example codes for "mysql compare datetime to another datetime". It will help you in understanding the concepts better.

Code Example 1

Select * From temp where mydate > STR_TO_DATE('2009-06-29 04:00:44', '%Y-%m-%d %H:%i:%s');

Code Example 2

Select * From temp where mydate > '2009-06-29 04:00:44';

Learn ReactJs, React Native from akashmittal.com