Answers from the community about Datetime

Some of the conversations between community members on questions, suggestions and tips for using Sanity. Join our Discord to be a part of it.

TopicCategoriesFeaturedRepliesLast Updated
How to remove canonicalisation globally in Sanity?18May 6, 2020
Sanity datetime schema type displaying incorrect day of week5Jan 22, 2024
How to extract year/hour from datetime fields in GROQ queries?6Oct 10, 2023
How to hide the timestamp next to the date on a Sanity blog post16Apr 26, 2023
GROQ dateTime() function with Date type returning null4Sep 29, 2022
Structuring Nested Categories and Tags in Sanity Desk6Sep 11, 2022
Auto-toggle boolean field across documents in Sanity schema8Jul 25, 2022
How to handle timezones in Sanity? Looking for date + time + timezone plugin11May 6, 2022
How to show createdAt field in Sanity Studio20Apr 13, 2022
Calendar plugin schedule button not showing despite adding document type18Jan 28, 2022
Query documents by array field conditions (date, boolean filters)6Dec 21, 2021
How to specify timezone for richDate field with PDT/PST support?10Oct 20, 2021
Filter Sanity products by field values (checkbox/array) not documents5Jul 18, 2021
How to fix "untitled" document name in Sanity schema type?16Jul 12, 2021
GROQ: Filter posts by category when categories is an array field7Jun 29, 2021
How to get previous and next items of same type with GROQ?15Jun 3, 2021
Sanity date field dateFormat option not being respected8Apr 2, 2021
Articles sorted by publishedAt DESC return jumbled results with wrong order18Feb 9, 2021