Articles on: Frequently Asked Questions (FAQ)

How to add dynamic date format in metafield?


{{ data[2] | add_day_to_date: “%d.%m.%y %H:%M”, data[1] }}

Date and Time strftime Format Options



FormatDescriptionExample
%bShortened month name"Jan"
%BFull month name"January"
%mNumbered month of the year (01..12)"01"
%dDay of the month (01..31)"15"
%jDay of the year (001..366)"123"
%aShortened weekday name"Mon"
%AFull weekday name"Monday"
%wThe numeric day of the week (0..6)"1"
%UNumeric week number in the year (0..53) [starting with the first Sunday]"22"
%WNumeric week number in the year (0..53) [starting with the first Monday]"22"
%yTwo-digit year (00..99)"99"
%YFour-digit year"2022"
%HHour of the day (military time) (00..23)"18"
%IHour of the day (12-hour clock) (01..12)"08"
%MMinute of the hour (0..59)"15"
%SSecond of the minute (0..59)"30"
%pAM or PM"PM"
%ZTime zone name"Central Time (US & Canada)"

Updated on: 15/04/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!