import moment from 'moment'

export const formatDate = (value, format) => {
    return moment(value).format(format)
}

@@ -20,16 +20,17 @@
 'moment'
+;
 %0A%0Aexport
@@ -85,35 +85,211 @@
 urn 
-moment(value).format(format)%0A%7D%0A
+value instanceof Date%0A        ? moment(value).format(format)%0A        : '';%0A%7D;%0A%0Aexport const formatHour = hour =%3E %7B%0A    hour = hour %7C%7C 0;%0A    return (hour %25 12 %7C%7C 12) + ':00 ' + ( hour %3C 12 ? 'am' : 'pm');%0A%7D;

add filter formatHour