@microsoft/fast-foundation > Calendar > dateInString
Calendar.dateInString() method
A helper function that checks if a date exists in a list of dates
Signature:dateInString(date: Date | string, datesString: string): boolean;
Parameters
| Parameter | Type | Description |
|---|---|---|
| date | Date | string | A date objec that includes the day, month and year |
| datesString | string | a comma separated list of dates |
boolean
- Returns true if it found the date in the list of dates