cms/app-client/app/helpers/short-date.js
author Chloe Laisne <chloe.laisne@gmail.com>
Sun, 21 Aug 2016 13:51:22 +0200
changeset 257 eba9edbd8f46
parent 210 08ad36c693b1
permissions -rw-r--r--
Add title to annotation Divide annotations in fragments when timestamp is the same

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