SyntaxFix
Write A Post
Hire A Developer
Questions
const date = moment(YOUR_DATE) return (moment().diff(date, 'days') >= 2) ? date.fromNow() : date.calendar().split(' ')[0]