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

#   changing date format

##

- **[Machka](/forum/user/60840-machka "View Machka's Profile")**
- [![Machka's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60840-machka "View Machka's Profile") Topic Author
- [ Offline](/forum/user/60840-machka)

Less More

- Posts: 57
- Thank you received: 2
-
-

5 years 6 months ago [\#332051](#332051) by [Machka](/forum/user/60840-machka "View Machka's Profile")  *[changing date format](/forum/26-product-category-display/902460-changing-date-format#332051 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.26 -- PHP version -- : 7.3.27 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  when entering a time for availability of a new product the date is displayed as yyyy.mm-dd. How can I change this exactly otherwis, so Germans also understand?  thanks in advance kind regards")* was created by *[Machka](/forum/user/60840-machka "View Machka's Profile")*

-- HikaShop version -- : 4.4.1
-- Joomla version -- : 3.9.26
-- PHP version -- : 7.3.27
-- Browser(s) name and version -- : all
-- Error-message(debug-mod must be tuned on) -- : none

when entering a time for availability of a new product the date is displayed as yyyy.mm-dd.
How can I change this exactly otherwis, so Germans also understand?

thanks in advance
kind regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDI0NjAtY2hhbmdpbmctZGF0ZS1mb3JtYXQ/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86321
- Thank you received: 14279
-
-

5 years 6 months ago [\#332060](#332060) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[changing date format](/forum/26-product-category-display/902460-changing-date-format#332060 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.26 -- PHP version -- : 7.3.27 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  when entering a time for availability of a new product the date is displayed as yyyy.mm-dd. How can I change this exactly otherwis, so Germans also understand?  thanks in advance kind regards")*

Hi,

The date format can be customized with translation overrides of these two keys:
HIKASHOP_DATE_FORMAT
HIKASHOP_EXTENDED_DATE_FORMAT
[ www.hikashop.com/download/languages.html#modify](https://www.hikashop.com/download/languages.html#modify)

The following user(s) said Thank You: [Machka](/forum/user/60840-machka "View Machka's Profile")

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

- **[Machka](/forum/user/60840-machka "View Machka's Profile")**
- [![Machka's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60840-machka "View Machka's Profile") Topic Author
- [ Offline](/forum/user/60840-machka)

Less More

- Posts: 57
- Thank you received: 2
-
-

5 years 5 months ago [\#332436](#332436) by [Machka](/forum/user/60840-machka "View Machka's Profile")  Replied by *[Machka](/forum/user/60840-machka "View Machka's Profile")* on topic *[changing date format](/forum/26-product-category-display/902460-changing-date-format#332436 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.26 -- PHP version -- : 7.3.27 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  when entering a time for availability of a new product the date is displayed as yyyy.mm-dd. How can I change this exactly otherwis, so Germans also understand?  thanks in advance kind regards")*

then theres only one thing left:
The customer can only declare the week of year, when the article will arrive. That means:
Bike 1 comes in week 16 of the year 2021 and another one in week 20 of the year. Any suggestions how to handle this?

please ![;)](/media/kunena/emoticons/24.png ";)")

Kind regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDI0NjAtY2hhbmdpbmctZGF0ZS1mb3JtYXQ/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86321
- Thank you received: 14279
-
-

5 years 5 months ago [\#332445](#332445) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[changing date format](/forum/26-product-category-display/902460-changing-date-format#332445 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.26 -- PHP version -- : 7.3.27 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : none  when entering a time for availability of a new product the date is displayed as yyyy.mm-dd. How can I change this exactly otherwis, so Germans also understand?  thanks in advance kind regards")*

Hi,

While you could use these date format overrides to handle this, that means that you'll see the week number for all the dates on your website instead of day + month, so that's not really practical.

So you'll have to do this with a view file override.
In the menu Display&gt;Views, you would need to edit the view file "add_to_cart_ajax.php" (for the listings) and "quantity.php" (for the product details page) and change the line: Code:

echo JText::sprintf('ITEM_SOLD_ON_DATE', hikashop_getDate($start_date, $this-&gt;params-&gt;get('date_format', '%d %B %Y')));

There you can see the date format: %d %B %Y
So change this to remove the day and month and add the week number. As per [ www.php.net/manual/en/datetime.format.php](https://www.php.net/manual/en/datetime.format.php) the week number should be available with the letter W

The following user(s) said Thank You: [Machka](/forum/user/60840-machka "View Machka's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDI0NjAtY2hhbmdpbmctZGF0ZS1mb3JtYXQ/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.100 seconds

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

[](#top)
