[Solved] Regular Expression and Logic for Date Validation [closed]


Simply try this. (dd/mm/YYYY) Eg: 06/12/2014

   if (preg_match('\d{1,2}/\d{1,2}/\d{4}', $input))
   {
      return true; // it matched, return true
   }
   else
   {
      return false;
   }

4

solved Regular Expression and Logic for Date Validation [closed]