(locale: string, refParts: DatetimeParts)
| 171 | * Example: May 2021 |
| 172 | */ |
| 173 | export const getMonthAndYear = (locale: string, refParts: DatetimeParts) => { |
| 174 | const date = getNormalizedDate(refParts); |
| 175 | return new Intl.DateTimeFormat(locale, { month: 'long', year: 'numeric', timeZone: 'UTC' }).format(date); |
| 176 | }; |
| 177 | |
| 178 | /** |
| 179 | * Given a locale and a date object, |
no test coverage detected