note 6947 deleted from function.getdate by jimw

From: Date: Mon, 22 Oct 2001 23:40:01 +0000
Subject: note 6947 deleted from function.getdate by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-19296@lists.php.net to get a copy of this message
If you need a DateTime in MySQL, you can use this (simply copy/paste) <? $zeitblock = getdate(); $zeitformat = $zeitblock[year] . "-" . $zeitblock[mon] . "-" . $zeitblock[mday] . " " . $zeitblock[hours] . ":" . $zeitblock[minutes] . ":" . $zeitblock[seconds]; echo $zeitformat; ?> Now you can add $zeitformat in your datetime row on mysql without complicated formulars as i have seen in several comments Boris Koester X-ITEC IT-Consulting, Security, Engineering

« previous php.notes (#19296) next »