How to use JDate
From Joomla! Documentation
(Difference between revisions)
Masterchief (Talk | contribs) m |
(→Temporary example) |
||
| Line 4: | Line 4: | ||
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> | ||
| + | let me try edit it. | ||
Revision as of 04:09, 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')
let me try edit it.