Skip to main content Link Menu Expand (external link) Document Search Copy Copied

MessageDateTime class

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

A child class of MessageValue for Date values.


export declare class MessageDateTime extends MessageValue<Date> 

Extends: MessageValue<Date>


Constructor Modifiers Description
(constructor)(locale, date, { meta, options, source })   (BETA) Constructs a new instance of the MessageDateTime class


Property Modifiers Type Description
options?   Intl.DateTimeFormatOptions (BETA) (Optional)


Method Modifiers Description
toParts()   (BETA)
toString(onError)   (BETA)