Skip to content

Commit a4dd740

Browse files
author
Jaxon Wright
committed
fix: correct day view title when using moment date formatter
Closes mattlewis92#1396
1 parent 30d8f69 commit a4dd740

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/angular-calendar/src/modules/common/calendar-moment-date-formatter.provider.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,6 @@ export class CalendarMomentDateFormatter
118118
* The day view title
119119
*/
120120
public dayViewTitle({ date, locale }: DateFormatterParams): string {
121-
return this.moment(date).locale(locale).format('dddd, D MMMM, YYYY');
122-
}
121+
return this.moment(date).locale(locale).format('dddd, LL'); // dddd = Thursday
122+
} // LL = locale-dependent Month Day, Year
123123
}

0 commit comments

Comments
 (0)