How to use JDate

From Joomla! Documentation

Revision as of 08:48, 4 April 2008 by E-builds (talk | contribs) (Temporary example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Temporary example[edit]

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

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