I need to validate two date formats: `DD-MMM-YYYY` and `DD MMM YYYY`.

Here is the code I use to validate DD-MMM-YYYY

```
CASE 
   WHEN (date_column != ' ' 
         AND (ISDATE(date_column) = 0
              OR (ISDATE(date_column) = 1
              AND (CHARINDEX('-', date_column, 0) <> 3 
               OR (CHARINDEX('-', date_column, 4) <>7
               OR (LEN(date_column) <> 11))) 
      THEN 1
      ELSE 0  
END)

```

Here is the code I use to validate DD MMM YYYY:

```
 CASE WHEN ( date_column !=' ' 
       AND ( ISDATE(date_column )=0
           OR ( ISDATE(date_column )=1
               AND ( CHARINDEX(' ',date_column ,0) <>3 
               OR  ( CHARINDEX(' ',date_column ,4) <>7
               OR  (LEN(date_column) <>11
               )
             )
         ) THEN 1
         ELSE 0  END)

```

Can these be combined to populate at a same time instead of two blocks of code?