note 11864 deleted from function.date by jimw

From: Date: Fri, 02 Nov 2001 00:54:15 +0000
Subject: note 11864 deleted from function.date by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20076@lists.php.net to get a copy of this message
/////////////////////////////////////// // function dt() - return dd-mm-year // /////////////////////////////////////// function dt() { $d=getdate(); $dt=""; $da=$d["mday"]; if (strlen((string)$da)==1) { $da="0".$da; } $dt.=$da."-"; $da=$d["mon"]; if (strlen((string)$da)==1) { $da="0".$da; } $dt.=$da."-"; $da=$d["year"]; if (strlen((string)$da)==1) { $da="0".$da; } $dt.=$da; return $dt; } // end function dt ()

« previous php.notes (#20076) next »