add support for different date formats