standardizing the date format used with back end