Skip to content
Snippets Groups Projects
Commit f2d85f9b authored by MrJoshE's avatar MrJoshE
Browse files

Change locale date to iso date

parent dd6b3ced
No related branches found
No related tags found
No related merge requests found
......@@ -132,10 +132,10 @@ const BookingsPage = () => {
<strong>Street Address:</strong> {booking.street_address}
</Text>
<Text>
Time of Booking: {new Date(booking.start_time).toLocaleString()}
Time of Booking: {new Date(booking.start_time).toISOString().substring(0,new Date(booking.start_time).toISOString().lastIndexOf(':') ).replace('T', ' ').replaceAll('-' ,'/')}
</Text>
<Text>
Expiry Time: {new Date(booking.end_time).toLocaleString()}
Expiry Time: {new Date(booking.end_time).toISOString().substring(0,new Date(booking.end_time).toISOString().lastIndexOf(':') ).replace('T', ' ')}
</Text>
<Stack>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment