标签: javascript date
我正在做一个问答网络应用程序。我有一个像October 10th 2018, 10:04这样的日期,但我不想像today, yesterday, 2 days ago那样显示日期,而是以它的形式显示。取决于它离当前日期的日期?
October 10th 2018, 10:04
today, yesterday, 2 days ago