Display items with a closing date in xx days

Hi

I’ve creates a metadata field %asset_metadata_eoi.closing-date% for users to insert a closing date for each EOI item.

I need to display closing dates in xx days, eg closing in 2 days.

Could you please advise how to achieve this.

Thank you very much.

Easiest thing is to probably use JS or some JS library to do it for you. Check out some of the answers here: https://stackoverflow.com/questions/7641791/javascript-library-for-human-friendly-relative-date-formatting

https://momentjs.com/ is a library I’ve used in the past that works pretty well for these sorts of things.