Forum Discussion
HeatherPLI
20 days agoCollaborator
Liquid use case: Monday of previous week?
Hi! Absolute beginner here, with a rather specific use case query: can I use Liquid to populated an email with the date of the Monday of the previous calendar week, rendered as [number] [month], e.g....
Manoj__
20 days agoVisionary
Hello HeatherPLI if you are customers are in different time zone then you add time zone operator to get dates in their timezones
eg:
For a Specific timezone
{% assign today_utc = 'now' | time_zone: 'Australia/Sydney' | date: '%s' | plus: 0 %}For user based timezone
{% assign today_utc = 'now' | time_zone: '{{${time_zone}}}' | date: '%s' | plus: 0 %}
Nirnay
20 days agoMentor
Hi Manoj__
For this specific use case, the timezone shouldn’t make a difference. The calendar date for last Monday is the same globally, whether you’re in Sydney, New York, or London, last calendar week’s Monday (February 2, 2026) remains the same date everywhere. Since we’re referencing a fixed calendar date rather than performing a time-specific calculation, using UTC will still return the correct Monday.
That said, there’s certainly no downside to including it. 🙂
Related Content
- 1 year ago