moment.js
Moment.js, version: 2.24.3
Example based on https://momentjs.com/docs/
Template:
<p id="currentDate"></p>
Script:
SR.render({}, () => {
const { moment } = SR.lib;
moment.locale('en');
// Get the current date and time
const now = moment();
document.querySelector('#currentDate').innerHTML = now.format('MMMM Do YYYY, h:mm:ss a');
});