Setting and verifying dates