Test for date formats