Test for date string