summaryrefslogtreecommitdiff
path: root/CoreWiki/wwwroot/js/site.js
blob: 244a5c5097a683adde1d5d15ad3bdb5b26e4681b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
// for details on configuring this project to bundle and minify static web assets.

// Write your JavaScript code.
(function () {
    const timeStamps = document.querySelectorAll(".timeStampValue");
    for (const ts of timeStamps) {
        const thisTimeStamp = ts.getAttribute("data-value");
        const date = new Date(thisTimeStamp);
        ts.textContent = moment(date).format('LLL');
    }
})();