cms/app-client/app/helpers/short-date.js
author ymh <ymh.work@gmail.com>
Thu, 03 Nov 2016 04:43:18 +0100
changeset 389 2204faa0b41a
parent 210 08ad36c693b1
permissions -rw-r--r--
Correct problem in spaqrl client in php 56 + add line numbering in result table

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