Re: dataobject : format a date

From: Date: Mon, 06 Sep 2004 13:01:23 +0000
Subject: Re: dataobject : format a date
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14430@lists.php.net to get a copy of this message
Mike wrote:
Hi, I get back a date in the size(format) date / hour and I would like to know if there is a function in dataobject allowing to get back every element of my date: day month year the hour and the minute.Thanks
dataobjects should just return the data in the same format it gets it from the database, unless you use: $do->getMyDateField("%d/%M/%Y %H:%i"); check the strftime docs for the exact syntax. (This only works with overload on ) Regards Alan

« previous php.pear.general (#14430) next »