note 15669 deleted from function.checkdate by jimw

From: Date: Fri, 07 Dec 2001 20:43:16 +0000
Subject: note 15669 deleted from function.checkdate by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-21946@lists.php.net to get a copy of this message
Para validar uma data no formato dd/mm/yyyy (Brasil) pode-se usar como segue: function IsDate($orig_data){ $data=explode("/","$orig_data"); $d=$data[0]; $m=$data[1]; $y=$data[2]; $res=checkdate($m,$d,$y); if ($res==1) { return true;} else { return false;} }

« previous php.notes (#21946) next »