Skip to content

Commit 5e75ce8

Browse files
committed
Updated readme for date events
1 parent ea51b68 commit 5e75ce8

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,23 @@ The only other accepted format is an empty string, meaning the date has not been
1111

1212
**Important:** Make sure to increment the id
1313

14-
```json
14+
```ts
1515
[
1616
{
17-
"title": "Title of the event",
18-
"description": "Description of the event",
19-
"date": "04/22",
20-
"location": "Engineering building",
21-
"id": 0
17+
title: 'Title of the event',
18+
description: 'Description of the event',
19+
date: new Date('2025-01-22T17:00:00'),
20+
location: 'The ideas hub (second floor of the engineering building)',
21+
weekly: true,
22+
endDate: new Date(semesterEnd)
2223
},
2324
{
24-
"title": "Title of the event 2",
25-
"description": "Description of the event 2",
26-
"date": "04/23",
27-
"location": "Engineering building",
28-
"id": 1
25+
title: 'Title of the event 2',
26+
description: 'Description of the event 2',
27+
date: new Date('2025-01-22T14:00:00'),
28+
location: 'The ideas hub (second floor of the engineering building)',
29+
weekly: true,
30+
endDate: new Date(semesterEnd)
2931
}
3032
]
3133
```

0 commit comments

Comments
 (0)