getting date formats consistent