Keyword

Hide the time from Created Date field

  • stavroch
  • stavroch's Avatar Topic Author
  • Offline
  • Elite Member
More
14 years 3 months ago #85135 by stavroch
Hide the time from Created Date field was created by stavroch
Can I hide only the Created time? I would like to show the created date but not the time. Can I do that?

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

More
14 years 3 months ago #85136 by william white
Replied by william white on topic Hide the time from Created Date field
Try this:
Create a k2 override or subtemplate
Edit Item.php and search for DATE_FORMAT_LC2
change the 2 to 3 or 4
assign the subtemplate to a category
test
3 returns 22 June 2010
4 returns 22.06.10

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

  • stavroch
  • stavroch's Avatar Topic Author
  • Offline
  • Elite Member
More
14 years 3 months ago #85137 by stavroch
Replied by stavroch on topic Hide the time from Created Date field
Great job.
Thank u ;)

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

More
14 years 1 month ago #85138 by AkaMyself
Replied by AkaMyself on topic Hide the time from Created Date field
didn't work for me, edited itemp.php in com_k2/templates/default folder, changed DATE_FORMAT_LC2 for DATE_FORMAT_LC3 for the category view, saved, cleaned cache, nothing, the time is till showing next to the date above title.
Missing something here ?

Thanks

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

More
14 years 1 month ago #85139 by william white
Replied by william white on topic Hide the time from Created Date field
That was a while ago when i looked at that, from the post...try changing in item.php and see what happens, if it works there, then we will have to figure out what the difference is...
perhaps you should be in category_item...php instead of category php

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

More
14 years 1 month ago #85140 by AkaMyself
Replied by AkaMyself on topic Hide the time from Created Date field
Well thanks a lot for your response, it is indeed in the category_item.php file and not item.php
it's perfect now.

Thanks again William

William White said:That was a while ago when i looked at that, from the post...try changing in item.php and see what happens, if it works there, then we will have to figure out what the difference is... perhaps you should be in category_item...php instead of category php

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

More
14 years 1 month ago #85141 by william white
Replied by william white on topic Hide the time from Created Date field
welcome

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

More
13 years 7 months ago #85142 by Ruth Cheesley
Replied by Ruth Cheesley on topic Hide the time from Created Date field
Thanks for this William, just what I needed too :)  Is there any way of showing Friday, 18th February 2011 rather than just 18th February 2011?

I'm not really sure where to look for the strings to have a poke about!

 

Ruth

Ruth Cheesley
Virya Technologies

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

More
13 years 2 weeks ago #85143 by Matthew Price
Replied by Matthew Price on topic Hide the time from Created Date field
Great fix :-) I used LC1 to display Thursday, 01 September 2011. Cheers

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


Powered by Kunena Forum