Next monday 5pm doesn't work

7 views
Skip to first unread message

Darthmahon

unread,
Jul 3, 2008, 4:58:08 AM7/3/08
to Datejs - A JavaScript Date Library
Hi Guys,

Been using DateJS for a while now but noticing some weird things that
I would expect to work, but don't. Heres is a quick list:

"next monday 5pm" = "Monday, July 07, 2008 12:00:00 AM"

"next monday at 5pm" = "Monday, July 07, 2008 12:00:00 AM"

"5pm next monday" = "Monday, July 07, 2008 12:00:00 AM"

"today at 5" = "Thursday, May 01, 2008 12:00:00 AM"

Any ideas why some of these don't format the date properly?

brady8

unread,
Jul 30, 2008, 1:16:57 PM7/30/08
to Datejs - A JavaScript Date Library
I am having the same problem. "today" gives correct response. "3 days
from now" gives the same thing as "today". "2 weeks from now" gives
the same thing as "today". When I have a chance to look at my code
again tonight I'll update it to the latest version on the datejs.com
homepage and see if that makes a difference.

brady8

unread,
Jul 30, 2008, 1:25:31 PM7/30/08
to Datejs - A JavaScript Date Library
Update: it now works as expected after pulling the date.js off of the
datejs.com: http://www.datejs.com/build/date.js.

Best of luck Darthmahon.
> > Any ideas why some of these don't format the date properly?- Hide quoted text -
>
> - Show quoted text -

geoffrey.mcgill

unread,
Jul 30, 2008, 1:29:02 PM7/30/08
to Datejs - A JavaScript Date Library
The latest build is available from SVN (http://www.datejs.com/svn/).
The version on the datejs.com homepage is always the latest build as
well, but SVN will contain all the other culture-specific builds and
most current source code.

Hope this helps.
Reply all
Reply to author
Forward
0 new messages