From: <php...@li...> - 2010-11-17 06:36:28
|
Hi, This is a php issue, not a java bridge issue, so using this mailing list is not really appropriate. Please refer to the php data function : http://php.net/manual/en/function.date.php, or using the DataTime object : http://www.php.net/manual/en/datetime.format.php The correct syntax would be $formattedDate = date($format, $timestamp) or (object, assuming you variable $dateformat is a DateTime object) $formattedDate = $dateformat->format($format), with $format being a format string like 'Y-m-d H:i:s' Regards, J. Mallet. On Wed, Nov 17, 2010 at 1:55 PM, < php...@li...> wrote: > Hi > > I am unsure what you are referring to. The way to format a date with > DateFormat is to call the format method. > > So is $dateformat->format($mydate); not a method call in PHP? > > Hermod > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > > |