Working with dates in Liquid
Using a few tricks it's actually pretty easy to calculate days and weeks into the future
This can be handy for setting shipping windows among other things
The first step is to get the current date as a unix timestamp (seconds since epoch)
assign today = 'now' | date: '%s'
Now assign some helper variables that hold the number of seconds in a single day and in an entire week
assign single_day = 86400
assign one_week = single_day | times: 7
Now we are all set for determining any set date in the future. Say for example, that you want to display a ship date that is exactly 8 days from today
today | plus: one_week | plus: single_day