Answer the question
In order to leave comments, you need to log in
How to format date in milliseconds?
Formatting from milliseconds to a normal date is easy
const optionsTime = {
year: 'numeric',
month: 'numeric',
day: 'numeric',
hour: 'numeric',
minute: 'numeric'
};
new Date(1508706000000).toLocaleString('ru', optionsTime);
// "23.10.2017, 0:00"
дд.мм.гггг, чч:мм
new Date('16.09.2017, 16:39').getTime();
NaN
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question