Hi @mrdalfors
There’s comments on this thread which indicate that depending on which datatype you are using you will get [object object] for a date picker.
You may want to try changing the underlying data type if that’s possible. If not, you could try ${ value.date } or you may need to create a custom UFM filter, something like:
import { UmbUfmFilterBase } from '@umbraco-cms/backoffice/ufm';
import { DateTime } from 'luxon';
class UmbUfmDateFormatFilterApi extends UmbUfmFilterBase {
filter(value, format) {
if (!value) return value;
const date = value instanceof Date ?
DateTime.fromJSDate(value) :
typeof value === 'string' ?
DateTime.fromISO(value) :
DateTime.fromISO(value.date, { zone: value.timeZone || undefined });
return date.toFormat(format || "yyyy-MM-dd HH:mm");
}
}
export { UmbUfmDateFormatFilterApi as api };
Justin