N
N
Noir2019-07-31 11:49:47
JavaScript
Noir, 2019-07-31 11:49:47

How to find out what format?

2019-01-02T11:26:05.073+0200 there is such a date how to find out the format like yyyy-MM-dd and so on

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Stalker_RED, 2019-07-31
@PolarBearGG

This is the international standard ISO 8601 .
In js, dates have a built-in toISOString() method.

let foo = new Date();
foo.toISOString();
// -> "2019-07-31T09:11:39.715Z"

E
Eugene Chefranov, 2019-07-31
@Chefranov

https://developer.mozilla.org/en/docs/Web/JavaScript...

H
hzzzzl, 2019-07-31
@hzzzzl

new Date('2019-01-02T11:26:05.073+0200').getFullYear()
new Date('2019-01-02T11:26:05.073+0200').getMonth() + 1
new Date('2019- 01-02T11:26:05.073+0200').getDate()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question