getting the date right