Skip to main content

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

Properties

Name Type Format Description
from datetime   The date and time the range starts
to datetime   The date and time the range ends

Validation

The from value cannot be greater than the to value.

Example

JavaScript
ContensisClient.entries.get('<entry_id>').then(function (entry) {
    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