[Skip to main content](#vessel-content)

#   How ot customize the date format in products comments

##

- **[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")**
- [![oloccina's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23273.jpg)](/forum/user/23273-oloccina "View oloccina's Profile") Topic Author
- [ Offline](/forum/user/23273-oloccina)

Less More

- Posts: 224
- Thank you received: 8
-
-

8 years 6 months ago [\#292976](#292976) by [oloccina](/forum/user/23273-oloccina "View oloccina's Profile")  *[How ot customize the date format in products comments](/forum/26-product-category-display/894765-how-ot-customize-the-date-format-in-products-comments#292976 "Hello, I see that the date format in products comments is handled by the language string HIKASHOP&#95;EXTENDED&#95;DATE&#95;FORMAT=&quot;%d.%m.%Y - %H:%M&quot;  I woudl like a different format (like 20 May 2018), but if I change that language string this will affect the date format on orders/invoices etc... whcih instead should stay %d.%m.%Y - %H:%M  so how to do this? in vote / listing.php file I see this code  could you suggest maybe how to edit it in order to pull a different language string?  thank you!")* was created by *[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")*

Hello,
I see that the date format in products comments is handled by the language string
HIKASHOP_EXTENDED_DATE_FORMAT="%d.%m.%Y - %H:%M"

I woudl like a different format (like 20 May 2018), but if I change that language string this will affect the date format on orders/invoices etc... whcih instead should stay %d.%m.%Y - %H:%M

so how to do this?
in vote / listing.php file I see this code
Code:

&lt;td colspan="8"&gt;&lt;?php $voteClass = hikashop_get('class.vote'); $vote = $voteClass-&gt;get($elt-&gt;vote_id); echo hikashop_getDate($vote-&gt;vote_date); ?&gt;&lt;/td&gt;

could you suggest maybe how to edit it in order to pull a different language string?

thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQ3NjUtaG93LW90LWN1c3RvbWl6ZS10aGUtZGF0ZS1mb3JtYXQtaW4tcHJvZHVjdHMtY29tbWVudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

8 years 6 months ago [\#292998](#292998) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How ot customize the date format in products comments](/forum/26-product-category-display/894765-how-ot-customize-the-date-format-in-products-comments#292998 "Hello, I see that the date format in products comments is handled by the language string HIKASHOP&#95;EXTENDED&#95;DATE&#95;FORMAT=&quot;%d.%m.%Y - %H:%M&quot;  I woudl like a different format (like 20 May 2018), but if I change that language string this will affect the date format on orders/invoices etc... whcih instead should stay %d.%m.%Y - %H:%M  so how to do this? in vote / listing.php file I see this code  could you suggest maybe how to edit it in order to pull a different language string?  thank you!")*

Hi,

You can just change the line:
echo hikashop_getDate($vote-&gt;vote_date);
to:
echo hikashop_getDate($vote-&gt;vote_date, '%d.%m.%Y - %H:%M');
and replace %d.%m.%Y - %H:%M by the format you want:
[ us2.php.net/strftime/](http://us2.php.net/strftime/)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQ3NjUtaG93LW90LWN1c3RvbWl6ZS10aGUtZGF0ZS1mb3JtYXQtaW4tcHJvZHVjdHMtY29tbWVudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")**
- [![oloccina's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23273.jpg)](/forum/user/23273-oloccina "View oloccina's Profile") Topic Author
- [ Offline](/forum/user/23273-oloccina)

Less More

- Posts: 224
- Thank you received: 8
-
-

8 years 6 months ago [\#293011](#293011) by [oloccina](/forum/user/23273-oloccina "View oloccina's Profile")  Replied by *[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")* on topic *[How ot customize the date format in products comments](/forum/26-product-category-display/894765-how-ot-customize-the-date-format-in-products-comments#293011 "Hello, I see that the date format in products comments is handled by the language string HIKASHOP&#95;EXTENDED&#95;DATE&#95;FORMAT=&quot;%d.%m.%Y - %H:%M&quot;  I woudl like a different format (like 20 May 2018), but if I change that language string this will affect the date format on orders/invoices etc... whcih instead should stay %d.%m.%Y - %H:%M  so how to do this? in vote / listing.php file I see this code  could you suggest maybe how to edit it in order to pull a different language string?  thank you!")*

Thank you,
I tried this but it's not working unfortunately.
I inserted
Code:

&lt;tr&gt; &lt;td colspan="8"&gt;&lt;?php $voteClass = hikashop_get('class.vote'); $vote = $voteClass-&gt;get($elt-&gt;vote_id); echo hikashop_getDate($vote-&gt;vote_date, '%d %B %Y'); ?&gt;&lt;/td&gt; &lt;/tr&gt;

should show 22 May 2018
but it still shows 22.05.2018

I tried to insert some new comments to see if this would change only in the new ones,
I have also verified that the vote / listing.php is rendering the changes correctly, tried to add a test paragraph and it shows

so what could this be?

- [ ![vote&#95;date.png](/forum/attachment/43753) ](/forum/attachment/43753 "vote&#95;date.png") [ ](/forum/attachment/43753?download=1 "vote&#95;date.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQ3NjUtaG93LW90LWN1c3RvbWl6ZS10aGUtZGF0ZS1mb3JtYXQtaW4tcHJvZHVjdHMtY29tbWVudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

8 years 6 months ago [\#293015](#293015) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How ot customize the date format in products comments](/forum/26-product-category-display/894765-how-ot-customize-the-date-format-in-products-comments#293015 "Hello, I see that the date format in products comments is handled by the language string HIKASHOP&#95;EXTENDED&#95;DATE&#95;FORMAT=&quot;%d.%m.%Y - %H:%M&quot;  I woudl like a different format (like 20 May 2018), but if I change that language string this will affect the date format on orders/invoices etc... whcih instead should stay %d.%m.%Y - %H:%M  so how to do this? in vote / listing.php file I see this code  could you suggest maybe how to edit it in order to pull a different language string?  thank you!")*

Hi,

Make sure that you're editing the correct view file wih the "Display view files" setting of the HikaShop configuration.
It should indeed be vote/listing.php
Make sure that you're editing it for the correct template.

Also, note that the %d %B %Y format is a default format and thus if you use that, it will automatically use the translation key:
HIKASHOP_DATE_FORMAT="%d %B %Y"
So either you change that translation key, or instead of the format, you use a new translation key and you enter the format for that translation key in your translation override so that the system can use it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQ3NjUtaG93LW90LWN1c3RvbWl6ZS10aGUtZGF0ZS1mb3JtYXQtaW4tcHJvZHVjdHMtY29tbWVudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")**
- [![oloccina's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23273.jpg)](/forum/user/23273-oloccina "View oloccina's Profile") Topic Author
- [ Offline](/forum/user/23273-oloccina)

Less More

- Posts: 224
- Thank you received: 8
-
-

8 years 6 months ago [\#293091](#293091) by [oloccina](/forum/user/23273-oloccina "View oloccina's Profile")  Replied by *[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")* on topic *[How ot customize the date format in products comments](/forum/26-product-category-display/894765-how-ot-customize-the-date-format-in-products-comments#293091 "Hello, I see that the date format in products comments is handled by the language string HIKASHOP&#95;EXTENDED&#95;DATE&#95;FORMAT=&quot;%d.%m.%Y - %H:%M&quot;  I woudl like a different format (like 20 May 2018), but if I change that language string this will affect the date format on orders/invoices etc... whcih instead should stay %d.%m.%Y - %H:%M  so how to do this? in vote / listing.php file I see this code  could you suggest maybe how to edit it in order to pull a different language string?  thank you!")*

Ok, this is really strange...

so I inserted a language string Code:

echo hikashop_getDate($vote-&gt;vote_date, JText::_('HIKASHOP_DATE_VOTE'));

and in my language file Code:

HIKASHOP_DATE_VOTE="%d %B %Y"

result is always the same: 22.05.2018
these are all other language strings I have on file Code:

HIKASHOP_DATE_FORMAT="%d.%m.%Y" HIKASHOP_DATE_VOTE="%d %B %Y" HIKASHOP_EXTENDED_DATE_FORMAT="%d.%m.%Y - %H:%M"

the vote / listing.php si definitely the right one, If I insert some text I can see it on frontend, also
when I change Code:

echo hikashop_getDate($vote-&gt;vote_date, JText::_('HIKASHOP_DATE_VOTE'));

to Code:

echo hikashop_getDate($vote-&gt;vote_date, JText::_('HIKASHOP_EXTENDED_DATE_FORMAT'));

the date indeed changed to: 22.05.2018 - 10:23

but as soon as I change it back to Code:

echo hikashop_getDate($vote-&gt;vote_date, JText::_('HIKASHOP_DATE_VOTE'));

it becomes again: 22.05.2018

so I am confused here...because if I change the language string to
HIKASHOP_DATE_VOTE="%Y"
then I correctly see just the year
but as soon as I change it to
HIKASHOP_DATE_VOTE="%d %B %Y"

I see: 22.05.2018
while it should be: 22 May 2018

this is truly a mistery to me!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQ3NjUtaG93LW90LWN1c3RvbWl6ZS10aGUtZGF0ZS1mb3JtYXQtaW4tcHJvZHVjdHMtY29tbWVudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[MalcolmB](/forum/user/55131-malcolmb "View MalcolmB's Profile")**
- [![MalcolmB's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/55131-malcolmb "View MalcolmB's Profile")
- [ Offline](/forum/user/55131-malcolmb)

Less More

- Posts: 15
- Thank you received: 0
-
-

8 years 6 months ago [\#293099](#293099) by [MalcolmB](/forum/user/55131-malcolmb "View MalcolmB's Profile")  Replied by *[MalcolmB](/forum/user/55131-malcolmb "View MalcolmB's Profile")* on topic *[How ot customize the date format in products comments](/forum/26-product-category-display/894765-how-ot-customize-the-date-format-in-products-comments#293099 "Hello, I see that the date format in products comments is handled by the language string HIKASHOP&#95;EXTENDED&#95;DATE&#95;FORMAT=&quot;%d.%m.%Y - %H:%M&quot;  I woudl like a different format (like 20 May 2018), but if I change that language string this will affect the date format on orders/invoices etc... whcih instead should stay %d.%m.%Y - %H:%M  so how to do this? in vote / listing.php file I see this code  could you suggest maybe how to edit it in order to pull a different language string?  thank you!")*

I trying to cange date formats at the moment.You could try the date format as:
‘d.M.y – h.i’

d = day as 2 digits
M = month as 3 letters i.e. Jan
F = month in full i.e. January
y = year as 2 digits i.e. 18
Y = year as 4 digits i.e. 2018
h = hour in 12 hour format
I = minutes

This works for me but don't know if its the best way.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQ3NjUtaG93LW90LWN1c3RvbWl6ZS10aGUtZGF0ZS1mb3JtYXQtaW4tcHJvZHVjdHMtY29tbWVudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")**
- [![oloccina's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23273.jpg)](/forum/user/23273-oloccina "View oloccina's Profile") Topic Author
- [ Offline](/forum/user/23273-oloccina)

Less More

- Posts: 224
- Thank you received: 8
-
-

8 years 6 months ago [\#293105](#293105) by [oloccina](/forum/user/23273-oloccina "View oloccina's Profile")  Replied by *[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")* on topic *[How ot customize the date format in products comments](/forum/26-product-category-display/894765-how-ot-customize-the-date-format-in-products-comments#293105 "Hello, I see that the date format in products comments is handled by the language string HIKASHOP&#95;EXTENDED&#95;DATE&#95;FORMAT=&quot;%d.%m.%Y - %H:%M&quot;  I woudl like a different format (like 20 May 2018), but if I change that language string this will affect the date format on orders/invoices etc... whcih instead should stay %d.%m.%Y - %H:%M  so how to do this? in vote / listing.php file I see this code  could you suggest maybe how to edit it in order to pull a different language string?  thank you!")*

Thanks Malcom but I need this format to work "%d %B %Y"

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQ3NjUtaG93LW90LWN1c3RvbWl6ZS10aGUtZGF0ZS1mb3JtYXQtaW4tcHJvZHVjdHMtY29tbWVudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

8 years 6 months ago [\#293093](#293093) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How ot customize the date format in products comments](/forum/26-product-category-display/894765-how-ot-customize-the-date-format-in-products-comments#293093 "Hello, I see that the date format in products comments is handled by the language string HIKASHOP&#95;EXTENDED&#95;DATE&#95;FORMAT=&quot;%d.%m.%Y - %H:%M&quot;  I woudl like a different format (like 20 May 2018), but if I change that language string this will affect the date format on orders/invoices etc... whcih instead should stay %d.%m.%Y - %H:%M  so how to do this? in vote / listing.php file I see this code  could you suggest maybe how to edit it in order to pull a different language string?  thank you!")*

Hi,

No, you need to pass the translation key, not the text.
So the code should be for example: Code:

echo hikashop_getDate($vote-&gt;vote_date, 'HIKASHOP_DATE_VOTE');

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQ3NjUtaG93LW90LWN1c3RvbWl6ZS10aGUtZGF0ZS1mb3JtYXQtaW4tcHJvZHVjdHMtY29tbWVudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")**
- [![oloccina's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23273.jpg)](/forum/user/23273-oloccina "View oloccina's Profile") Topic Author
- [ Offline](/forum/user/23273-oloccina)

Less More

- Posts: 224
- Thank you received: 8
-
-

8 years 6 months ago [\#293118](#293118) by [oloccina](/forum/user/23273-oloccina "View oloccina's Profile")  Replied by *[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")* on topic *[How ot customize the date format in products comments](/forum/26-product-category-display/894765-how-ot-customize-the-date-format-in-products-comments#293118 "Hello, I see that the date format in products comments is handled by the language string HIKASHOP&#95;EXTENDED&#95;DATE&#95;FORMAT=&quot;%d.%m.%Y - %H:%M&quot;  I woudl like a different format (like 20 May 2018), but if I change that language string this will affect the date format on orders/invoices etc... whcih instead should stay %d.%m.%Y - %H:%M  so how to do this? in vote / listing.php file I see this code  could you suggest maybe how to edit it in order to pull a different language string?  thank you!")*

mmmh..

if I insert this Code:

echo hikashop_getDate($vote-&gt;vote_date, 'HIKASHOP_DATE_VOTE');

I get this
%02 %482 %2018

if I insert this Code:

echo hikashop_getDate($vote-&gt;vote_date, JText::_('HIKASHOP_DATE_VOTE'));

I get this
02.04.2018

while it should be
2 Apr 2018

because the language string is Code:

HIKASHOP_DATE_VOTE="%d %B %Y"

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQ3NjUtaG93LW90LWN1c3RvbWl6ZS10aGUtZGF0ZS1mb3JtYXQtaW4tcHJvZHVjdHMtY29tbWVudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

8 years 6 months ago [\#293120](#293120) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How ot customize the date format in products comments](/forum/26-product-category-display/894765-how-ot-customize-the-date-format-in-products-comments#293120 "Hello, I see that the date format in products comments is handled by the language string HIKASHOP&#95;EXTENDED&#95;DATE&#95;FORMAT=&quot;%d.%m.%Y - %H:%M&quot;  I woudl like a different format (like 20 May 2018), but if I change that language string this will affect the date format on orders/invoices etc... whcih instead should stay %d.%m.%Y - %H:%M  so how to do this? in vote / listing.php file I see this code  could you suggest maybe how to edit it in order to pull a different language string?  thank you!")*

Hi,

I don't see why it would do that.
Then simply use instead the date function of PHP with the format you want:
[ php.net/manual/fr/function.date.php](http://php.net/manual/fr/function.date.php)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQ3NjUtaG93LW90LWN1c3RvbWl6ZS10aGUtZGF0ZS1mb3JtYXQtaW4tcHJvZHVjdHMtY29tbWVudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")**
- [![oloccina's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23273.jpg)](/forum/user/23273-oloccina "View oloccina's Profile") Topic Author
- [ Offline](/forum/user/23273-oloccina)

Less More

- Posts: 224
- Thank you received: 8
-
-

8 years 6 months ago [\#293149](#293149) by [oloccina](/forum/user/23273-oloccina "View oloccina's Profile")  Replied by *[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")* on topic *[How ot customize the date format in products comments](/forum/26-product-category-display/894765-how-ot-customize-the-date-format-in-products-comments#293149 "Hello, I see that the date format in products comments is handled by the language string HIKASHOP&#95;EXTENDED&#95;DATE&#95;FORMAT=&quot;%d.%m.%Y - %H:%M&quot;  I woudl like a different format (like 20 May 2018), but if I change that language string this will affect the date format on orders/invoices etc... whcih instead should stay %d.%m.%Y - %H:%M  so how to do this? in vote / listing.php file I see this code  could you suggest maybe how to edit it in order to pull a different language string?  thank you!")*

Yes, this is quite misterious to me too...
I have already tried
echo hikashop_getDate($vote-&gt;vote_date, '%d %B %Y');
see third reply on this same post

It still renders 02.04.2018 and not 2 Apr 2018

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQ3NjUtaG93LW90LWN1c3RvbWl6ZS10aGUtZGF0ZS1mb3JtYXQtaW4tcHJvZHVjdHMtY29tbWVudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

8 years 6 months ago [\#293162](#293162) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How ot customize the date format in products comments](/forum/26-product-category-display/894765-how-ot-customize-the-date-format-in-products-comments#293162 "Hello, I see that the date format in products comments is handled by the language string HIKASHOP&#95;EXTENDED&#95;DATE&#95;FORMAT=&quot;%d.%m.%Y - %H:%M&quot;  I woudl like a different format (like 20 May 2018), but if I change that language string this will affect the date format on orders/invoices etc... whcih instead should stay %d.%m.%Y - %H:%M  so how to do this? in vote / listing.php file I see this code  could you suggest maybe how to edit it in order to pull a different language string?  thank you!")*

Then use the date function instead of hikashop_getDate as I said in my previous message.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQ3NjUtaG93LW90LWN1c3RvbWl6ZS10aGUtZGF0ZS1mb3JtYXQtaW4tcHJvZHVjdHMtY29tbWVudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")**
- [![oloccina's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23273.jpg)](/forum/user/23273-oloccina "View oloccina's Profile") Topic Author
- [ Offline](/forum/user/23273-oloccina)

Less More

- Posts: 224
- Thank you received: 8
-
-

8 years 6 months ago -  8 years 6 months ago [\#293217](#293217) by [oloccina](/forum/user/23273-oloccina "View oloccina's Profile")  Replied by *[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")* on topic *[How ot customize the date format in products comments](/forum/26-product-category-display/894765-how-ot-customize-the-date-format-in-products-comments#293217 "Hello, I see that the date format in products comments is handled by the language string HIKASHOP&#95;EXTENDED&#95;DATE&#95;FORMAT=&quot;%d.%m.%Y - %H:%M&quot;  I woudl like a different format (like 20 May 2018), but if I change that language string this will affect the date format on orders/invoices etc... whcih instead should stay %d.%m.%Y - %H:%M  so how to do this? in vote / listing.php file I see this code  could you suggest maybe how to edit it in order to pull a different language string?  thank you!")*

Thank you for your patience Nicola,
I am not a developer and I don't always understand fully what you mean ![:unsure:](/media/kunena/emoticons/18.png ":unsure:")

This finally did the trick and now the votes date is showing correctly Code:

echo hikashop_getDate($vote-&gt;vote_date, 'j F Y');

thanks again!

Last edit: 8 years 6 months ago by [oloccina](/forum/user/23273-oloccina "View oloccina's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQ3NjUtaG93LW90LWN1c3RvbWl6ZS10aGUtZGF0ZS1mb3JtYXQtaW4tcHJvZHVjdHMtY29tbWVudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.103 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
