Fixes example for date formating in README

This commit is contained in:
zngguvnf
2021-03-28 20:00:33 +02:00
committed by GitHub
parent 0a7d6a9526
commit 34abe3b353

View File

@@ -312,8 +312,8 @@ Use [strftime](https://docs.python.org/3/library/datetime.html#strftime-strptime
```yaml
# returns "20.03.2020"
value_template: '{{value.date.strftime("%m/%d/%Y")}}'
date_template: '{{value.date.strftime("%m/%d/%Y")}}'
value_template: '{{value.date.strftime("%d.%m.%Y")}}'
date_template: '{{value.date.strftime("%d.%m.%Y")}}'
# returns "03/20/2020"
value_template: '{{value.date.strftime("%m/%d/%Y")}}'