change date from string to date