cms/app-client/app/helpers/short-date.js
author ymh <ymh.work@gmail.com>
Mon, 17 Oct 2016 18:51:48 +0200
changeset 347 9779512454af
parent 210 08ad36c693b1
permissions -rw-r--r--
Correct jslint errors

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