The isDate() method returns if a specific metadata key is defined as a date.
For example:
const metadataKey = 'ft:lastPublication';
const isDate = FluidTopicsDateService.isDate(metadataKey);
console.log(`Is "${metadataKey}" a date?`, isDate);
The isDate() method returns if a specific metadata key is defined as a date.
For example:
const metadataKey = 'ft:lastPublication';
const isDate = FluidTopicsDateService.isDate(metadataKey);
console.log(`Is "${metadataKey}" a date?`, isDate);