feat:#30 reactive URL parameters RoomOccupation

This commit is contained in:
survellow
2024-02-24 04:14:11 +01:00
parent 27b1b591cc
commit 62acdcbc88
6 changed files with 105 additions and 74 deletions

View File

@@ -0,0 +1,8 @@
/**
* Format a date to a string in the format "YYYYMMDD".
* @param date - The date to format
* @returns string - The formatted date
*/
export function formatYearMonthDay(date: Date): string {
return date.toISOString().split("T")[0].replace(/-/g, "");
}