Fix date format used in DateRange

Fixes #292