Date range
Log in to add to favouritesThe 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
const entry = await client.entries.get('<entry_id>');
console.log(entry.myDateRange.from);
console.log(entry.myDateRange.to);