cms/app-client/app/helpers/short-date.js
author ymh <ymh.work@gmail.com>
Tue, 20 Dec 2016 23:42:18 +0100
changeset 481 002a05cd849f
parent 210 08ad36c693b1
permissions -rw-r--r--
add color gradient to map visualisaion

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);