[Dojo-interest] Date Parsing to go with Date Formatting
Rick Morrison
rickmorrison at gmail.com
Fri Apr 28 09:39:03 MDT 2006
Aaron, it seems to me that if what you're looking for is a round trip, the
ECMA Date object already does that in native code:
var d = new Date();
var s = d.toString();
var d2 = d.parse(s);
assert(d == d2);
I don't really see the value in round-tripping dates in a gadozen string
formats. Any data provider API will most likely store dates in native date
objects or JSON strings, not formatted strings.
> Never mind a user interface, IMO,
> that is beside the point and these functions/methods are just the
IMO, user interaction is *entirely* the point. This is main purpose of this
client-side library, no?
Rick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20060428/53cbf622/attachment-0001.html
More information about the Dojo-interest
mailing list