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:
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:
To claim this, I am signing this object: