date->asInteger

Returns the integer representation of a date.

Target member

Signature

1date->asInteger()

Returns the integer representation of a date.

date->asInteger is called with member syntax on a receiver value. date->asInteger handles calendar, duration, or formatting behavior. Store values in structured date or duration form and format them only when presenting text.

Examples

Basic call

1date->asInteger
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.