Developer forum

Forum » Ecommerce - Standard features » Shipping fee dates inclusive or exclusive?

Shipping fee dates inclusive or exclusive?

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,.

For a shipping fee I can specify as start and end date: https://doc.dynamicweb.com/documentation-9/ecommerce/payment-shipping/shipping-methods#sideNavTitle1-5

Are those dates inclusive or exclusive? For example, when I choose 18-11 as the end data, I see this in the database:

18/11/2021 00:00:00 

Does that mean the rate is valid until 17/11/2021 23:59:59 or does it take the whole date / day in consideration? Would be good to clarify that in the docs.

Imar


Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply
This post has been marked as an answer

Hi,

The fee rule can be applied if current date is inside DateFrom(included) and DateTo-1(excluded), so your example with rate is valid until 17/11/2021 23:59:59 is correct. It seems to be general behaviour with date ranges in DW but I've asked to specify the feature in the manual - task 5769. Thanks.

BR, Oleg QA

Votes for this answer: 1
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Great, thanks for confirming Oleg!

 

You must be logged in to post in the forum