Syntax | Description |
---|---|
Header | Title |
Paragraph | Text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
calcAge(dateString){ | |
let added_date = moment(new Date(dateString)).fromNow(true); | |
// console.log('today=', today); | |
added_date = added_date.replace(' days',''); | |
added_date>7 ? added_date = moment(dateString).format("dddd, MMMM Do, YYYY") : added_date = moment(new Date(dateString)).fromNow(false); | |
return added_date; | |
} |
I hereby claim:
- I am AaronBDC on github.
- I am aarondh (https://keybase.io/aarondh) on keybase.
- I have a public key whose fingerprint is 9C71 323A 3E43 C2B0 EBA1 5F3F D925 B3EF 9E09 2FD9
To claim this, I am signing this object: