- Posts: 295
COMMUNITY FORUM
Hide the time from Created Date field
- stavroch
- Topic Author
- Offline
- Elite Member
Less
More
14 years 4 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.
- william white
- Offline
- Platinum Member
Less
More
- Posts: 3722
14 years 4 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
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
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 295
14 years 4 months ago #85137
by stavroch
Replied by stavroch on topic Hide the time from Created Date field
Great job.
Thank u ;)
Thank u ;)
Please Log in or Create an account to join the conversation.
- AkaMyself
- Offline
- New Member
Less
More
- Posts: 2
14 years 2 months 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
Missing something here ?
Thanks
Please Log in or Create an account to join the conversation.
- william white
- Offline
- Platinum Member
Less
More
- Posts: 3722
14 years 2 months 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
perhaps you should be in category_item...php instead of category php
Please Log in or Create an account to join the conversation.
- AkaMyself
- Offline
- New Member
Less
More
- Posts: 2
14 years 2 months 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
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.
- william white
- Offline
- Platinum Member
Less
More
- Posts: 3722
14 years 2 months 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.
- Ruth Cheesley
- Offline
- Senior Member
13 years 8 months ago #85142
by Ruth Cheesley
Ruth Cheesley
Virya Technologies
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
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.
- Matthew Price
- Offline
- New Member
Less
More
- Posts: 1
13 years 1 month 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.