noalyss Version-9
Functions
format_date.php File Reference

Go to the source code of this file.

Functions

 check_date ($p_date, $p_format)
 

Function Documentation

◆ check_date()

check_date (   $p_date,
  $p_format 
)

Definition at line 22 of file format_date.php.

23{
24 $test =\DateTime::createFromFormat ( $p_format , $p_date);
25 var_dump($test);
26 if ( ! $test ) {
27 echo "error";
28 }
29}

References $p_date.