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

#   Adding time to 'product available from' date

##

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

Less More

- Posts: 2
- Thank you received: 0
-
-

14 years 3 months ago [\#58008](#58008) by [kjtesson](/forum/user/8195-kjtesson "View kjtesson's Profile")  *[Adding time to 'product available from' date](/forum/2-general-talk-about-hikashop/58008-adding-time-to-product-available-from-date#58008 "Hi, I'm almost finished setting up my installation of Hikashop, loving it so far.  Small query: I do timed updates of my products, so when I have a product that has an 'available from' date that's in the future, I'd like to display the hour/minute that it will be available in addition to the date which I already have. I think I've found the location in the code where this is set - under Views, product/quantity.php, but I don't know how to alter the date format to include the time.  Any suggestions?  Thanks in advance!")* was created by *[kjtesson](/forum/user/8195-kjtesson "View kjtesson's Profile")*

Hi, I'm almost finished setting up my installation of Hikashop, loving it so far.

Small query: I do timed updates of my products, so when I have a product that has an 'available from' date that's in the future, I'd like to display the hour/minute that it will be available in addition to the date which I already have. I think I've found the location in the code where this is set - under Views, product/quantity.php, but I don't know how to alter the date format to include the time.

Any suggestions?

Thanks in advance!

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

14 years 3 months ago [\#58078](#58078) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Adding time to 'product available from' date](/forum/2-general-talk-about-hikashop/58008-adding-time-to-product-available-from-date#58078 "Hi, I'm almost finished setting up my installation of Hikashop, loving it so far.  Small query: I do timed updates of my products, so when I have a product that has an 'available from' date that's in the future, I'd like to display the hour/minute that it will be available in addition to the date which I already have. I think I've found the location in the code where this is set - under Views, product/quantity.php, but I don't know how to alter the date format to include the time.  Any suggestions?  Thanks in advance!")*

Hi,

You can just remove the format from there and it will use the default format of date which includes the hour/minute.
So you will have that code:
echo JText::sprintf('ITEM_SOLD_ON_DATE',hikashop_getDate($start_date));

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

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

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

Less More

- Posts: 2
- Thank you received: 0
-
-

14 years 3 months ago [\#58085](#58085) by [kjtesson](/forum/user/8195-kjtesson "View kjtesson's Profile")  Replied by *[kjtesson](/forum/user/8195-kjtesson "View kjtesson's Profile")* on topic *[Re: Adding time to 'product available from' date](/forum/2-general-talk-about-hikashop/58008-adding-time-to-product-available-from-date#58085 "Hi, I'm almost finished setting up my installation of Hikashop, loving it so far.  Small query: I do timed updates of my products, so when I have a product that has an 'available from' date that's in the future, I'd like to display the hour/minute that it will be available in addition to the date which I already have. I think I've found the location in the code where this is set - under Views, product/quantity.php, but I don't know how to alter the date format to include the time.  Any suggestions?  Thanks in advance!")*

Great, that's worked.

Thank you very much!

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

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