From c34e53912328ecd4fd50b3e92ef6f3bffdd9ece9 Mon Sep 17 00:00:00 2001 From: Luuk van Houdt <71889608+luukvhoudt@users.noreply.github.com> Date: Fri, 5 Dec 2025 11:49:01 +0100 Subject: [PATCH] Fix mismatching format compared to output --- docs/display/calendar-time.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/display/calendar-time.md b/docs/display/calendar-time.md index f14258dea..5e76b96e3 100644 --- a/docs/display/calendar-time.md +++ b/docs/display/calendar-time.md @@ -32,10 +32,10 @@ To escape characters, wrap them in square brackets (e.g. [Today]). ```js dayjs().calendar(null, { sameDay: '[Today at] h:mm A', // The same day ( Today at 2:30 AM ) - nextDay: '[Tomorrow]', // The next day ( Tomorrow at 2:30 AM ) - nextWeek: 'dddd', // The next week ( Sunday at 2:30 AM ) - lastDay: '[Yesterday]', // The day before ( Yesterday at 2:30 AM ) - lastWeek: '[Last] dddd', // Last week ( Last Monday at 2:30 AM ) + nextDay: '[Tomorrow at] h:mm A', // The next day ( Tomorrow at 2:30 AM ) + nextWeek: 'dddd [at] h:mm A', // The next week ( Sunday at 2:30 AM ) + lastDay: '[Yesterday at] h:mm A', // The day before ( Yesterday at 2:30 AM ) + lastWeek: '[Last] dddd [at] h:mm A', // Last week ( Last Monday at 2:30 AM ) sameElse: 'DD/MM/YYYY' // Everything else ( 7/10/2011 ) }) ```