replace dates by timestamps to get dates working