D
D
Dmitry Nikolaev2020-05-23 12:15:00
Working with date/time
Dmitry Nikolaev, 2020-05-23 12:15:00

How can I convert a string with time to a number?

5ec8e9578cd3d170159529.png

There is a JSON string. It needs to be converted to normal format. For example: 18:10

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GF, 2020-05-23
@kaleniybrat

So

var jsonDate = (new Date()).toJSON();
var backToDate = new Date(jsonDate);

https://developer.mozilla.org/en-US/docs/Web/JavaS...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question