validate date and time select with pattern