Keyword

[SOLVED] Rendering out Date Format from extraFields....

  • daniel nethery
  • daniel nethery's Avatar Topic Author
  • Offline
  • New Member
More
10 years 11 months ago - 10 years 11 months ago #120206 by daniel nethery
I'm using an extra field with the date field type. How can I pull the data and change the format to be something like 201311037

Here is how I'm grabbing it in an item page:
<?php echo $this->item->extraFields->EventEndDate->value ?>

Thanks a million for the help!
dan.

Just because you can attach a file, you should! Here is a picture of my father.

Attachment not found

Attachments:

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 10 months ago #120207 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Rendering out Date Format from extraFields....
Dear Dan, there appears to be a bug with your father. This kind of leakage is not normal for his version. You should do some debugging on him, please enable error reporting and let me know what error messages you are getting.

Ps. Epic Photo

Yes you can actually. You can print the extrafield by Alias and select only the M or d variables.

This snippet will help you.getk2.org/community/New-to-K2-Ask-here-first/171284-Where-to-edit-K2-after-Item-Fields

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • daniel nethery
  • daniel nethery's Avatar Topic Author
  • Offline
  • New Member
More
10 years 10 months ago - 10 years 10 months ago #120208 by daniel nethery
Replied by daniel nethery on topic Re: Rendering out Date Format from extraFields....
Thanks for the reply!

For those of you who are googling~


K2 Joomla Component. How to custom format the extrafields type called Date
php.net/manual/en/function.date.php			

Please Log in or Create an account to join the conversation.

  • Alfonso F. Moreno
  • Alfonso F. Moreno's Avatar
  • Offline
  • Elite Member
More
10 years 6 months ago #120209 by Alfonso F. Moreno
Replied by Alfonso F. Moreno on topic Re: [SOLVED] Rendering out Date Format from extraFields....
I don't know why this shows for me the current date, not the one stored in database

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum