Формат даты в React JS
import React from 'react';
import Moment from 'react-moment';
export default class MyComponent extends React.Component {
render() {
return (
const dateToFormat = '1976-04-19';
<Moment>{dateToFormat}</Moment>
);
}
}
Testy Tapir