The goal is to calculate a future date and display that future date in human readable format. I get the unixtimestamp calculation part (i think), but that’s as far as I could get.
Here’s the HubL code … (live on the bottom of this dev page)
{% set future_days = 10|multiply(86400) %} {% set expiration_date = unixtimestamp(d)|add(future_days) %}
<h2>Today (uTime): {{ unixtimestamp(d) }} | Today (date): {{ unixtimestamp(d)|datetimeformat('%B %e, %Y') }}</h2>
<h2>Expiration (uTime): {{ expiration_date }} | Expiration (date): {{ expiration_date|datetimeformat('%B %e, %Y') }}</h2>
Q: Is there a best practice for calculating & displaying future dates in HubSpot email using HubL?
Thanks in advance for the help.