hardlounge/client/js/libs/handlebars/date.js

8 lines
123 B
JavaScript
Raw Normal View History

2016-03-20 17:18:43 +00:00
Handlebars.registerHelper(
"localeDate", function(date) {
date = new Date(date);
return date.toLocaleString();
}
);