Author: jablko
Date: Wed Oct 27 19:48:53 2010
New Revision: 8593

Log:
Handle more formats, try parsing with Date() first

Modified:
   trunk/js/date.js

Modified: trunk/js/date.js
==============================================================================
--- trunk/js/date.js    Wed Oct 27 19:23:43 2010        (r8592)
+++ trunk/js/date.js    Wed Oct 27 19:48:53 2010        (r8593)
@@ -7,6 +7,14 @@
         {
           function parse(value)
           {
+            var date = new Date(value);
+            if (!isNaN(date.getFullYear()))
+            {
+              date = [date.getFullYear(), date.getMonth() + 1, 
date.getDate()].join('-');
+
+              return [date, date];
+            }
+
             var min = [];
             var max = [];
 

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to