note 2542 modified in Date and Time functions by ronabop

From: Date: Wed, 13 Dec 2000 06:33:36 +0000
Subject: note 2542 modified in Date and Time functions by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-8691@lists.php.net to get a copy of this message
Converting a mysql timestamp to something usable by date: ereg("([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})",$timestamp, $regs); echo date("D, j M Y, H:i:s", mktime($regs[4], $regs[5], $regs[6], $regs[2],$regs[3], $regs[1])); http://www.php.net/manual/date-and-time-functions.php

« previous php.notes (#8691) next »