get the date right