<script src="https://cdnjs.cloudflare.com/ajax/libs/react/17.0.2/umd/react.development.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/17.0.2/umd/react-dom.development.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.26.0/babel.min.js"></script>
<script type="text/babel">
const currentTimestamp = Date.now();
const currentDate = new Date(currentTimestamp);
// Use toLocaleDateString to format the date
const formattedDate = currentDate.toLocaleDateString();
// Use toLocaleTimeString to format the time
const formattedTime = currentDate.toLocaleTimeString();
<div className='container'>
<h3>React Js Formatted date.now()</h3>
<p>Formatted Current Date: {formattedDate} {formattedTime}</p>
ReactDOM.render(<App />, document.getElementById('app'));
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);