advanced datetime validation