update isToday funciton