hardlounge/client/js/libs/handlebars/date.js
2016-04-07 16:07:40 -04:00

8 lines
123 B
JavaScript

Handlebars.registerHelper(
"localeDate", function(date) {
date = new Date(date);
return date.toLocaleString();
}
);