import moment from 'moment';
export class MomentFormatValueConverter{
toView(value, format) {
if(!value) return null;
let m = moment(value);
if(!m.isValid()) return null;
let f = format ? format : 'DD/MM/YYYY HH:mm';
let result = m.format(f);
return result;
}
}