Skip to content

Instantly share code, notes, and snippets.

@betweenbrain
Last active December 12, 2015 05:58
Show Gist options
  • Save betweenbrain/4725131 to your computer and use it in GitHub Desktop.
Save betweenbrain/4725131 to your computer and use it in GitHub Desktop.
Format K2 Date Type Extra Field
echo JHTML::_('date', $item->extraFields->EXTRAFIELDALIASHERE->value , JText::_('%m/%d/%y'))
@betweenbrain
Copy link
Author

@alfonsofmoreno
Copy link

I don't know why this shows for me the current date, not the one stored in database

@heyjoecampbell
Copy link

I just posted a solution (small hack) to help resolve the date extra field limitation - it's on the Joomla K2 Forum:
http://www.joomlaworks.net/forum/k2-en/36900-edit-extra-field-date-format-in-specific-template#143550

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment