Removing time from API dates