Skip to main content

Datetime Field Types

These field types use dataType: 'datetime'.

Field TypeStored Value
DatetimeDate and time, returned as YYYY-MM-DD HH:mm:ss
SummaryDatetime result when the summary function returns a datetime
Dynamic FormulaDatetime result when the formula result type is datetime

Convert to Date only when the script needs timestamp arithmetic:

const submittedAt = new Date(String(record.data.submitted_at || '').replace(' ', 'T'));
if (Number.isNaN(submittedAt.getTime())) {
throw new Error('SUBMITTED_AT_INVALID');
}