.monday

146 views
Skip to first unread message

manray

unread,
Apr 18, 2011, 2:24:19 PM4/18/11
to Datejs - A JavaScript Date Library
I am trying to get the monday for the following week. This is my code

Date.today().monday().toString("MM d");

today is monday 4/18/2011 but when this code prints it says 4 25.

Whats the deal? Anybody else getting this, or am I doing it wrong.?
Reply all
Reply to author
Forward
0 new messages