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

#   Export of orders shows incorrect date format

##

- **[daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")**
- [![daveturner101's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/guitar.gif)](/forum/user/13550-daveturner101 "View daveturner101's Profile") Topic Author
- [ Offline](/forum/user/13550-daveturner101)

Less More

- Posts: 72
- Thank you received: 0
-
-

12 years 2 months ago -  12 years 2 months ago [\#165989](#165989) by [daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")  *[Export of orders shows incorrect date format](/forum/44-mass-actions/870091-export-of-orders-shows-incorrect-date-format#165989 "-- HikaShop version -- : 2.2.3  Hi,  When exporting order data to a CSV using the mass action tool, the order&#95;created column contains the date as follows:  When i've used the export tool in the past the order&#95;created column has contained the date like this:  Why is the format different when using the mass action tool? Can I change this date format somewhere?")* was created by *[daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")*

-- HikaShop version -- : 2.2.3

Hi,

When exporting order data to a CSV using the mass action tool, the order_created column contains the date as follows:

> Saturday, 02 March 2013

When i've used the export tool in the past the order_created column has contained the date like this:

> 2013-02-28 12:02:06

Why is the format different when using the mass action tool? Can I change this date format somewhere?

Last edit: 12 years 2 months ago by [daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile"). Reason: wrong format

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 2 months ago [\#166031](#166031) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Export of orders shows incorrect date format](/forum/44-mass-actions/870091-export-of-orders-shows-incorrect-date-format#166031 "-- HikaShop version -- : 2.2.3  Hi,  When exporting order data to a CSV using the mass action tool, the order&#95;created column contains the date as follows:  When i've used the export tool in the past the order&#95;created column has contained the date like this:  Why is the format different when using the mass action tool? Can I change this date format somewhere?")*

Hi,

The format is indeed different, thanks to edit the file:
"administrator/components/com_hikashop/classes/massaction" function "displayByType()" and add: Code:

$format = 'Y-m-d H:i:s';

Just before: Code:

$square = hikashop_getDate($element-&gt;$column,$format);

The following user(s) said Thank You: [daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")

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

- **[daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")**
- [![daveturner101's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/guitar.gif)](/forum/user/13550-daveturner101 "View daveturner101's Profile") Topic Author
- [ Offline](/forum/user/13550-daveturner101)

Less More

- Posts: 72
- Thank you received: 0
-
-

12 years 2 months ago [\#166133](#166133) by [daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")  Replied by *[daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")* on topic *[\[SOLVED\] Export orders shows incorrect date format](/forum/44-mass-actions/870091-export-of-orders-shows-incorrect-date-format#166133 "-- HikaShop version -- : 2.2.3  Hi,  When exporting order data to a CSV using the mass action tool, the order&#95;created column contains the date as follows:  When i've used the export tool in the past the order&#95;created column has contained the date like this:  Why is the format different when using the mass action tool? Can I change this date format somewhere?")*

Worked a charm, thanks ![:)](/media/kunena/emoticons/8.png ":)")

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

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

[](#top)
