cms/app-client/app/helpers/short-date.js
author Chloe Laisne <chloe.laisne@gmail.com>
Sun, 03 Jul 2016 13:13:10 +0200
changeset 216 c174124d1849
parent 210 08ad36c693b1
permissions -rw-r--r--
/discours and /chrono design changes Playlist-component error when no items returned

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