changed date string to date