Date Time format in a Condition