parse dates as proper integers