Date time validation

add DateTime Validation to the DateTimePicker
please add space after 'if'