add comparison in date