J.P. Morgan interview question

comparison between dates and date functions.