M
M
mitya62017-03-04 00:22:29
JavaScript
mitya6, 2017-03-04 00:22:29

How to extract time and date using regular expressions?

I get the time and date in the following format: 2017-03-03T21:07:24.072Z.
How to use regular expressions to write date and time into two variables?
Or is it possible in some other way?
Sending to the server: ..... new Date();
I receive and process: ..... data.toJSON();
And I get: 2017-03-03T21:07:24.072Z

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question