Actions

Difference between revisions of "How to use JDate"

From Joomla! Documentation

m (Temporary example)
 
m (Reverted edits by Winnersoft1220 (Talk) to last version by Masterchief)
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
[[Category:Development]]
 +
 
== Temporary example ==
 
== Temporary example ==
 
JFactory::getDate() gets a JDate object and we then do the JDate toFormat function
 
JFactory::getDate() gets a JDate object and we then do the JDate toFormat function
 
<source lang="php">JFactory::getDate()->toFormat('%a %d %b %Y - %H:%M')</source>
 
<source lang="php">JFactory::getDate()->toFormat('%a %d %b %Y - %H:%M')</source>

Revision as of 11:01, 18 May 2010


Temporary example

JFactory::getDate() gets a JDate object and we then do the JDate toFormat function

JFactory::getDate()->toFormat('%a %d %b %Y - %H:%M')