Changes between Initial Version and Version 2 of Ticket #6008


Ignore:
Timestamp:
Feb 26, 2008, 9:47:38 PM (11 years ago)
Author:
wolfram
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6008

    • Property Type changed from defect to enhancement
  • Ticket #6008 – Description

    initial v2  
    11I was missing a general functionality to detect any kind of date and properly convert it, so I wrote quite a simple first version of it. Interesting for dojo?
     2{{{
     3    // Return a Date object for the various inputs
     4    dojo.date.get(new Date());
     5    dojo.date.get("now");
     6    dojo.date.get("yesterday");
     7    dojo.date.get("3 days ago");
     8    dojo.date.get("3 weeks ago");
     9}}}
     10and I am sure that a lot of things could be interesting to be done, like "+3 days", "-1 week", etc.