Skip to main content

The date range object represents a start and end point in time

Properties

NameTypeFormatDescription
fromdatetimeThe date and time the range starts
todatetimeThe date and time the range ends

Validation

The from value cannot be greater than the to value

Example

JavaScript
const entry = await client.entries.get('<entry_id>');

console.log(entry.myDateRange.from);
console.log(entry.myDateRange.to);

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request