Get a date interval