felixge/node-dateformat

DDDD is usually wrong

mgillis opened this issue ยท 3 comments

new Date();
Wed Jan 20 2021 20:20:48 GMT-0500 (Eastern Standard Time)

futureDate
Wed Jan 27 2021 00:00:00 GMT-0500 (Eastern Standard Time)

dateFormat(futureDate, "DDDD, mmmm dS");
"Today, January 27th"

otherFutureDate
Tue Jan 26 2021 00:00:00 GMT-0500 (Eastern Standard Time)

dateFormat(otherFutureDate, "DDDD, mmmm dS");
"Yesterday, January 26th"

pastDate
Wed Jan 13 2021 00:00:00 GMT-0500 (Eastern Standard Time)

dateFormat(pastDate, "DDDD, mmmm dS");
"Today, January 13th"

@TalhaAwan want to take a look? ๐Ÿ˜„

@TalhaAwan Thanks so much!!!! ๐Ÿ˜„

@mgillis All looking good now?