hardlounge/client/js/libs/handlebars/localedate.js
2016-11-23 16:35:42 +02:00

6 lines
121 B
JavaScript

"use strict";
Handlebars.registerHelper("localedate", function(time) {
return new Date(time).toLocaleDateString();
});