Dayjs(items.xyz.state).format('x') not working

How do I make dayjs(items.xyz.state).format(‘x’) work?
dayjs needs AdvancedFormat plugin, but how do I install that?

Anyone knows how?

You cannot, personally, install dayjs plugins unless you wish to compile (and maintain) your own version of the UI bundle.

You could put in a feature request to have the AdvancedFormat plugin added. I don’t know if this would be taken up or not, it’s a small size increase for something that is obviously not in high demand if it hasn’t been requested before.

You can also just simulate a timestamp yourself if you really need it:

dayjs(items.xzy.state).diff(dayjs('Jan 01 1970'))

Thanks a lot, that works perfectly.