time_add
{% assign tomorrow = "now" | time_add: 1, "days" %}
{% log tomorrow %}Syntax
{{ date | time_add: amount, unit }}Parameter
Description
Return Value
Examples
{% assign delivery_date = order.created_at | time_add: 5, "days" %}
{% log "Expected delivery: " | append: delivery_date %}{% assign expires_at = "now" | time_add: 24, "hours" %}
{% log "Expires at: " | append: expires_at %}Notes
Last updated