Skip to content

toDate

Creates a JavaScript Date from this value's displayed calendar components.

myDateTimeOffset.toDate():Date

Returns

A local Date with the same year, month, day, and time components.

Remarks

This conversion does not preserve the original offset as separate Date metadata.