note 101477 modified in function.date by danbrown

From: Date: Sun, 09 Jan 2011 17:08:56 +0000
Subject: note 101477 modified in function.date by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-175581@lists.php.net to get a copy of this message
convert an SQL datetime field to a unixtimestamp to set a new format in the output <?php $time_output=date("d-m-Y H:i",strtotime ($datetime_fromSQL)); ?> --was-- // convert an SQL datetime field to a unixtimestamp to set a new format in the output $time_output=date("d-m-Y H:i",strtotime ($datetime_fromSQL)); http://php.net/manual/en/function.date.php

« previous php.notes (#175581) next »