feat: show weekday name and MM-DD-YYYY format in schedule date button

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Gitead
2026-05-17 10:16:39 -04:00
parent 208ccf3549
commit b9e888fc7f

View File

@@ -1724,9 +1724,9 @@ export default function AppointmentsPage() {
variant="outline" variant="outline"
title="Go to today" title="Go to today"
onClick={() => setSelectedDate(startOfToday())} onClick={() => setSelectedDate(startOfToday())}
className="rounded-full w-auto px-3 font-semibold text-sm" className="w-auto px-3 font-semibold text-sm"
> >
{formattedSelectedDate} {selectedDate.toLocaleDateString('en-US', { weekday: 'long' })}&nbsp;·&nbsp;{`${String(selectedDate.getMonth() + 1).padStart(2, '0')}-${String(selectedDate.getDate()).padStart(2, '0')}-${selectedDate.getFullYear()}`}
</Button> </Button>
{/* > next day */} {/* > next day */}
<Button <Button