Difference between revisions of "How to use JDate"
From Joomla! Documentation
Line 3: | Line 3: | ||
== 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 04:10, 18 May 2010
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');