validate datetime for current time