mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2026-01-17 12:02:26 +01:00
feat:#30 reactive URL parameters RoomOccupation
This commit is contained in:
8
frontend/src/helpers/dates.ts
Normal file
8
frontend/src/helpers/dates.ts
Normal 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, "");
|
||||
}
|
||||
Reference in New Issue
Block a user