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

#   Change date format on invoice

##

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

Less More

- Posts: 27
- Thank you received: 1
-
-

11 years 1 month ago [\#217304](#217304) by [mschnyde](/forum/user/2863-mschnyde "View mschnyde's Profile")  *[Change date format on invoice](/forum/35-orders-management/879856-change-date-format-on-invoice#217304 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.4.45 -- Browser(s) name and version -- : FF 40.0.3  Hi, I set up a new site with HS2.5 I modified the invoice template, like I use it on another site. The date is not showing correct and a strange behaviour.  The code is: echo JText::&#95;('DATE').': '.hikashop&#95;getDate($this-&gt;element-&gt;order&#95;invoice&#95;created,'%d %B %Y'); It displays: &quot;2015-10-14&quot;  When I change the code like: echo JText::&#95;('DATE').': '.hikashop&#95;getDate($this-&gt;element-&gt;order&#95;invoice&#95;created,'%d %B %YY'); It displays: &quot;14 Oktober 20152015&quot;  My question is, what do I must change to get the european style of date like 14. Oktober 2015?  Kind regards,  Marco")* was created by *[mschnyde](/forum/user/2863-mschnyde "View mschnyde's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.4
-- PHP version -- : 5.4.45
-- Browser(s) name and version -- : FF 40.0.3

Hi,
I set up a new site with HS2.5
I modified the invoice template, like I use it on another site.
The date is not showing correct and a strange behaviour.

The code is:
echo JText::_('DATE').': '.hikashop_getDate($this-&gt;element-&gt;order_invoice_created,'%d %B %Y');
It displays: "**2015-10-14**"

When I change the code like:
echo JText::_('DATE').': '.hikashop_getDate($this-&gt;element-&gt;order_invoice_created,'%d %B %Y**Y**');
It displays: "**14 Oktober 20152015**"

My question is, what do I must change to get the european style of date like **14. Oktober 2015**?

Kind regards,

Marco

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3OTg1Ni1jaGFuZ2UtZGF0ZS1mb3JtYXQtb24taW52b2ljZT90bXBsPW1hcmtkb3du) 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: 86584
- Thank you received: 14325
-
-

11 years 1 month ago [\#217327](#217327) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Change date format on invoice](/forum/35-orders-management/879856-change-date-format-on-invoice#217327 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.4.45 -- Browser(s) name and version -- : FF 40.0.3  Hi, I set up a new site with HS2.5 I modified the invoice template, like I use it on another site. The date is not showing correct and a strange behaviour.  The code is: echo JText::&#95;('DATE').': '.hikashop&#95;getDate($this-&gt;element-&gt;order&#95;invoice&#95;created,'%d %B %Y'); It displays: &quot;2015-10-14&quot;  When I change the code like: echo JText::&#95;('DATE').': '.hikashop&#95;getDate($this-&gt;element-&gt;order&#95;invoice&#95;created,'%d %B %YY'); It displays: &quot;14 Oktober 20152015&quot;  My question is, what do I must change to get the european style of date like 14. Oktober 2015?  Kind regards,  Marco")*

Hi,

The date format is controlled with translations. So you want to use a translation override in order to change it:
[ hikashop.com/download/languages.html#modify](https://hikashop.com/download/languages.html#modify)
HIKASHOP_DATE_FORMAT="%Y-%m-%d"
HIKASHOP_EXTENDED_DATE_FORMAT="%Y-%m-%d %H:%M"

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

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

Less More

- Posts: 27
- Thank you received: 1
-
-

11 years 1 month ago -  11 years 1 month ago [\#217390](#217390) by [mschnyde](/forum/user/2863-mschnyde "View mschnyde's Profile")  Replied by *[mschnyde](/forum/user/2863-mschnyde "View mschnyde's Profile")* on topic *[Change date format on invoice](/forum/35-orders-management/879856-change-date-format-on-invoice#217390 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.4.45 -- Browser(s) name and version -- : FF 40.0.3  Hi, I set up a new site with HS2.5 I modified the invoice template, like I use it on another site. The date is not showing correct and a strange behaviour.  The code is: echo JText::&#95;('DATE').': '.hikashop&#95;getDate($this-&gt;element-&gt;order&#95;invoice&#95;created,'%d %B %Y'); It displays: &quot;2015-10-14&quot;  When I change the code like: echo JText::&#95;('DATE').': '.hikashop&#95;getDate($this-&gt;element-&gt;order&#95;invoice&#95;created,'%d %B %YY'); It displays: &quot;14 Oktober 20152015&quot;  My question is, what do I must change to get the european style of date like 14. Oktober 2015?  Kind regards,  Marco")*

Hi Nicolas,

Works perfectly.

Thank you very much.

Last edit: 11 years 1 month ago by [mschnyde](/forum/user/2863-mschnyde "View mschnyde's Profile").

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

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