cms/app-client/app/helpers/short-date.js
author ymh <ymh.work@gmail.com>
Thu, 19 Jan 2017 13:53:17 +0100
changeset 490 76da86cf9696
parent 210 08ad36c693b1
permissions -rw-r--r--
External OLAC links leads now to the OLAC documentation. Closes #0025936

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