Support different date formats