Infosys interview question

They asked to write a program on Date Comparision.