format dates to test format