I have 2 dates in ISO string format. I mean 2024-07-25T00:58:00.000Z
and 2024-07-30T13:35:00.000Z
. I am trying to make them combine as 2024-07-25T13:35:00.000Z
. Is there a way to do this with a simple solution?
Question posted in Javascript
A very good W3school tutorial can be found here.
A very good W3school tutorial can be found here.
2
Answers
I don’t see a clear scenario of doing this. However, just simply pick the value directly from any defined Date value:
You can split date and time with
.split('T')
and you can concatenate strings with+
.