How to add days to date in Shopify liquid

Sell Online With Shopify
Trusted by millions of businesses worldwide
Sign up for a free trial and enjoy the first month of Shopify for $1.

Are you want to add days to date? Here is the solution to add days to the current date or desired date using Shopify liquid.

Add days to date

The following source code will add 5 days to date.

Result: 2015-04-25

Add days to current date

The following source code will add 5 days to current date.

Looking for Shopify Experts?

Hura Apps can help you take your store to the next level

Our team of experienced designers and developers can help you create a beautiful, high-converting Shopify store that will drive sales and increase customer satisfaction. From custom design to app development and optimization, we have the skills and expertise to help you achieve your eCommerce goals.

Get in touch

You may also like...

1 Response

  1. Bob says:

    Why do the math like that when you can just assign the seconds?

    For 30 days, google how man seconds in 30 days

    {% assign seconds = 2592000 %} yeilds same results, and much simpler.

Leave a Reply

Your email address will not be published. Required fields are marked *