From b211fb67fbebf4239a0f29f4785313f87833f803 Mon Sep 17 00:00:00 2001 From: Aidan Feldman Date: Wed, 6 Jun 2018 10:09:33 -0400 Subject: [PATCH 1/2] add note about how date is parsed Was previously unclear what formats would be accepted. --- filters/date.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filters/date.md b/filters/date.md index 5423221e..c094c1f9 100644 --- a/filters/date.md +++ b/filters/date.md @@ -3,7 +3,7 @@ title: date description: Liquid filter that prints and formats dates. --- -Converts a timestamp into another date format. The format for this syntax is the same as [`strftime`](http://strftime.net). +Converts a timestamp into another date format. The format for this syntax is the same as [`strftime`](http://strftime.net). The input is parsed using Ruby's [`Time.parse`](https://ruby-doc.org/stdlib/libdoc/time/rdoc/Time.html#method-c-parse), so will accept any format accepted there.

Input

```liquid From b669229f698c060083c3a34f4648000cab47221a Mon Sep 17 00:00:00 2001 From: Aidan Feldman Date: Thu, 7 Jun 2018 12:03:15 -0400 Subject: [PATCH 2/2] simplify language around date parsing --- filters/date.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filters/date.md b/filters/date.md index c094c1f9..69be3ec3 100644 --- a/filters/date.md +++ b/filters/date.md @@ -3,7 +3,7 @@ title: date description: Liquid filter that prints and formats dates. --- -Converts a timestamp into another date format. The format for this syntax is the same as [`strftime`](http://strftime.net). The input is parsed using Ruby's [`Time.parse`](https://ruby-doc.org/stdlib/libdoc/time/rdoc/Time.html#method-c-parse), so will accept any format accepted there. +Converts a timestamp into another date format. The format for this syntax is the same as [`strftime`](http://strftime.net). The input uses the same format as Ruby's [`Time.parse`](https://ruby-doc.org/stdlib/libdoc/time/rdoc/Time.html#method-c-parse).

Input

```liquid