cms/app-client/app/helpers/short-date.js
author ymh <ymh.work@gmail.com>
Fri, 08 Sep 2017 12:04:06 +0200
changeset 541 e756a8c72c3d
parent 210 08ad36c693b1
permissions -rw-r--r--
integrate drupal and correct build process. update version

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