note 46191 added to function.date

From: Date: Fri, 01 Oct 2004 19:22:58 +0000
Subject: note 46191 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-77698@lists.php.net to get a copy of this message
In addition to rafaelr at veloxmail dot com dot br : If you use mySQL, then do it in SQL : 1. If you use a TIMESTAMP, or any DATETIME fields just use this (see http://dev.mysql.com/doc/mysql/en/DATETIME.html ) SELECT UNIX_TIMESTAMP(field) AS field FROM table or better use DATE_FORMAT (http://dev.mysql.com/doc/mysql/en/Date_and_time_functions.html ), I think it use the same format as strftime (http://fr.php.net/manual/fr/function.strftime.php ) do. ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46191 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46191&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+46191&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#77698) next »