R. from the North
R. from the North

Reputation: 111

javascript Countdown timer with weeks and months

I need a countdown script to calculate the difference between two dates, in months, weeks, and days.
I know about timespan.js and countdown.js, but those scripts only work with days.
What script could I use for months and weeks?
preferable the dates are in the yyyy-mm-dd format

Upvotes: 0

Views: 2353

Answers (2)

MortenMoulder
MortenMoulder

Reputation: 6648

Check the console

http://jsfiddle.net/x9yL7xL7/

moment('2018-02-01 00:00:00');

Taken from: http://www.netengine.at/de/hilfe/wiki/wiki-detail/?wid=90

Upvotes: 2

Related Questions