{"title":"date - Liquid Filter Reference","slug":"date-filter-reference","url":"https://support.storeconnect.com/articles/date-filter-reference","url_markdown":"https://support.storeconnect.com/articles/date-filter-reference.md","subtitle":null,"summary":"Formats a timestamp or date string using strftime syntax. Supports timezone conversion and works on well-formatted date strings.","type":"Developer_Documentation","video_url":"","keywords":"liquid, filters, date, dates, storeconnect","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## Description\n\nConverts a timestamp into another date format. The format for this syntax is the same as [strftime](http://strftime.net/){:target='_blank'}. The input uses the same format as Ruby’s [Time.parse](https://ruby-doc.org/stdlib/libdoc/time/rdoc/Time.html#method-c-parse){:target='_blank'}.\n\n| Property | Value |\n|----------|-------|\n| **Return Type** | string |\n| **Category** | dates |\n\n## Options\n\n| Option | Description |\n|--------|-------------|\n| `timezone` | Converts the timestamp into the supplied timezone before formatting |\n\n## Examples\n\n\n```liquid\n\n{{ \"2021-07-01\" | date: \"%a, %b %d, %y\" }}\n```\n\n\n**Output:** `Thu, Jul 01, 21`\n\n\n```liquid\n\n{{ \"2021-07-01\" | date: \"%Y\" }}\n```\n\n\n**Output:** `2021`\n\n`date` works on strings if they contain well-formatted dates\n\n\n```liquid\n\n{{ \"March 14, 2016\" | date: \"%b %d, %y\" }}\n```\n\n\n**Output:** `Mar 14, 16`\n\n\n```liquid\n\n{{ \"2021-06-30T13:00:00Z\" | date: \"%Y-%m-%d %H:%M\", timezone: \"Australia/Sydney\" }}\n```\n\n\n**Output:** `2021-06-30 23:00`"}