var currentDate is useless.