# Liquid date filter not working

**URL:** <https://talk.jekyllrb.com/t/liquid-date-filter-not-working/9154>\
**Category:** Help\
**Created:** [May 5, 2024, 5:26pm UTC](https://talk.jekyllrb.com/t/liquid-date-filter-not-working/9154 "2024-05-05T17:26:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aron](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@aron](https://talk.jekyllrb.com/u/aron)\
**Post date:** [May 5, 2024, 5:26pm UTC](https://talk.jekyllrb.com/t/liquid-date-filter-not-working/9154/1 "2024-05-05T17:26:10Z")

</div>

I’m trying to have a custom date but the filter doesn’t work!  
Example filter:

```auto
{{ site.time | date: “%Y” }}

```

Example output: `2024-05-05 20:20:03 +0300`  
What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![chuckhoupt](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/chuckhoupt/32/523_2.png) [@chuckhoupt](https://talk.jekyllrb.com/u/chuckhoupt)\
**Post date:** [May 5, 2024, 9:40pm UTC](https://talk.jekyllrb.com/t/liquid-date-filter-not-working/9154/2 "2024-05-05T21:40:48Z")

</div>

It looks like the quotes around `%Y` are “fancy quotes”, rather than plain quotation marks. Liquid only works with plain quotation marks. Compare the difference:

```auto
{{ site.time | date: “%Y” }}
{{ site.time | date: "%Y" }}

```

Possibly the fancy-quotes were automatically generated by your text editor.

---

<div class="post-metadata">

**Author:** ![aron](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@aron](https://talk.jekyllrb.com/u/aron)\
**Post date:** [May 5, 2024, 9:55pm UTC](https://talk.jekyllrb.com/t/liquid-date-filter-not-working/9154/3 "2024-05-05T21:55:38Z")

</div>

It works! Thank you so so much, I wouldn’t have noticed it otherwise.
