I have my date stored in database as 2023-06-15 23:59:59.0000000, UK date/time.
When in JavaScript I set as a date, new Date('2023-06-15T23:59:59Z')
, it returns the day after, "Fri Jun 16 2023 00:59:59 GMT+0100 (British Summer Time)" .
I can't get my head around what I need to do, when I'm storing the date do I need to take an hour off or is there a different method in JavaScript I need to call to get the date I'm expecting which would be "Thu Jun 15 2023 23:59:59 GMT+0100 (British Summer Time)"?