//----------- Funktionen von Druckauftrag ZAUN -------// //----------------------------------------------------- function imageFormatter64encode(value, row) { return 'wird berechnet'; } function datetimeFormat(value, row, index) { return moment(value).format('YYYY-MM-dd HH:mm'); } function dateFormat(value, row, index) { return moment(value).format('DD/MM/YYYY'); } function dateSorter(a, b) { var d1 = new Date(a); var d2 = new Date(b); if (d1 < d2) return -1; if (d1 > d2) return 1; return 0; }