This is the simple script I have written in php for Date Time comaprision.