From c6558ed3765ff9f6d19de36462c45dee16c9fb2e Mon Sep 17 00:00:00 2001 From: eikek Date: Sat, 19 Nov 2022 11:32:43 +0100 Subject: [PATCH] Update docs about `today` in custom fields Issue: #1655 --- website/site/content/docs/query/_index.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/site/content/docs/query/_index.md b/website/site/content/docs/query/_index.md index ade92afc..bf65edd4 100644 --- a/website/site/content/docs/query/_index.md +++ b/website/site/content/docs/query/_index.md @@ -359,7 +359,9 @@ to indicate that the following is the name of a custom field. The type of a custom field is honored. So if you have a money or numeric type, comparsions are done numerically. Otherwise a alphnumeric comparison is performed. Custom fields do not support the -in-operator (`~=`). +in-operator (`~=`). Date fields are an exception: they are always +compared alphanumerically and thus the `today` special value doesn't +work with them. For example: assuming there is a custom field of type *money* and name *usd*, the following selects all items with an amount between 10 and