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:
@@ -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' })} · {`${String(selectedDate.getMonth() + 1).padStart(2, '0')}-${String(selectedDate.getDate()).padStart(2, '0')}-${selectedDate.getFullYear()}`}
|
||||||
</Button>
|
</Button>
|
||||||
{/* > next day */}
|
{/* > next day */}
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Reference in New Issue
Block a user