cms/app-client/app/helpers/short-date.js
author Chloe Laisne <chloe.laisne@gmail.com>
Tue, 18 Oct 2016 18:05:11 +0530
changeset 355 83f5247f3c7a
parent 210 08ad36c693b1
permissions -rw-r--r--
Fix carto counts and map colors

import Ember from 'ember';

export function shortDate(params) {
	if(params[0]) {
		return params[0].getDate() + '-' + ( params[0].getMonth() + 1 ) + '-' + params[0].getFullYear();
	}
}

export default Ember.Helper.helper(shortDate);