I have a time like this which is selected in a datetimepicker
let time = 2024-04-22T10:00:00.000Z
i want the user to be able to choose a timezone that the time is in as an example europe/helsinki
i want to have a function that can convert that time into the zoned time and the output would be for example
converFromUtcToZoned("2024-04-22T10:00:00.000Z", "europe/helsinki") //output example "2024-04-22T70:00:00.000Z"
I have tried using the date-fns library but havent gotten anyt of those functions to work the way i wouldve wanted and i have tried searching for answers elsewhere.