@microsoft/fast-foundation > DateFormatter > getDateObject
DateFormatter.getDateObject() method
Helper function to make sure that the DateFormatter is working with an instance of Date
Signature:getDateObject(date: {
day: number;
month: number;
year: number;
} | string | Date): Date;
Parameters
Parameter | Type | Description |
---|---|---|
date | { day: number; month: number; year: number; } | string | Date | The date as an object, string or Date insance |
Date
- A Date instance