Sign Up
Loading...

Querying records by a date field

Asked by Kevin on August 10, 2025

How do I retrieve a single record from the costar_days table using a field named "date" in the query? Also, how can I avoid or automatically append the "T00:00:00.000Z" suffix to YYYY‑MM‑DD values?


Answered by Twidget

Convert the incoming date text input to a Date (or the platform’s date object) and then query the database using that date field. A working datetime format is like 2025-08-08T00:00:00.

To append a time suffix to a date string, use the Concat command (for example, concat(dateText, 'T00:00:00')). You do not need to include the ":000Z" component unless your external system requires that exact format.

Related Questions