In datejs, if i set the dateElementOrder to the pt-PT localized version of "dmy" or "ymd" instead of "mdy" the following tests on the "Partial" test fixture start to fail:
1/2008; 1 2008; 1-2008; 2008/1; 2008 1; 2008-1
What do i need to do to make it work?
...
I want to have a datepicker where you can also just type basically I want to have the jQuery UI Datepicker and datejs in one. I want to type "tomorrow" and I want it to select the right day. I want to be able to type "saturday" and it actually getting the date right.
...
I'm creating a simple app (PHP & MYSQL) that collects information about an event, and I'd like to incorporate natural language processing in the date collection portion. I stumbled upon date.js (www.datejs.com), and it seems like a great fit, but I'm not sure how I'd incorporate it into the input form and then pass the converted string a...
I am trying to show the last thursday of the current month with DateJS, however this library doesn't really work for me. Could you please help me with the solution?
...
Hi all,
I just find out about the power of date js, And its great!!!
As I am a newbie I was wondering if there is any kind of general validitation for different types of full dates.
eg.
var d1 = Date.parse('2000-10-18, 10:06 AM');
alert(d1.toString('HH:mm'));
If date is ('200-10-18, 10:06 AM'), of course it doesn't like it.
So my q...
I'm using DateJS to parse user-inputted dates, and getting some strange results.
Date.parse("15 Jan 2010") returns Fri Jan 15 00:00:00 EST 2010 (right)
Date.parse("15-Apr-2010") returns Thu Apr 15 00:00:00 EDT 2010 (right)
Date.parse("15 Apr 2010") returns Thu Apr 1 00:00:00 EDT 2010 (wrong)
As far as I can tell, the d MMM yyyy input...
I have a requirement where in, I have to parse the dates relative to a date object returned from the server side. But the datejs library always considers only the browsers date object.
The situation is something like this:
The server gives back the date in PST and the browser is in IST. And all the inputs are getting parsed with respect...
Hi,
Im using date.js to compare to dates that are written in user friendly string form(Sat, 1 July 2006 12:34:14). I use this code.
function is_new(lasttime, newtime){
lasttime = Date.parse(lastime);
newtime = Date.parse(newtime);
if(lasttime.isBefore(newtime)){
return true;
}else{
return false;
}
}
...
I'm trying to use timeago (source), with datejs, and it's not working. Here's some sample code I'd expect to work (given that timeago and datejs are loaded):
>>> d = new Date()
Mon Jun 21 2010 13:24:37 GMT-0400 (EST) { _orient=1, more...}
>>> d.toISOString() // datejs.toISOString
"2010-06-21T17:24:37.501Z" // this is a valid ...
I downloaded the daterangepicker available here : filament group
I am using jQuery 1.4.x version in my page, and all other plugins I am using are supported only on latest version of jQuery.
The daterangepicker tool fails because it is using date.js (which uses a very old jQuery).
If I use datepicker, all other plugins and functionali...
I'm using the excellent (but large) DateJS library to handle dates and times in my webapp. I just came across something that I'm not sure how to handle.
I want my users to be able to enter Time strings only, without a date, but they should be able to enter it in any manner they please. For instance:
5:00 pm
17:00
5:00pm
5:00p
5p
etc.
...