Reformats the date format for string into the database. Troy