[Seaside] Controlling value returned from Canvas' dateInput
rickf at ca-flower.com
Mon Feb 19 04:47:06 UTC 2007
Rick Flower wrote:
> I just started using the dateInput "widget" (or whatever you call
> it).. It currently returns a string such as "February 17, 2007", but I
> am wondering if it can be configured to return something else such as
> a Date object or perhaps a timestamp.. I guess in the meantime I could
> parse the returned string and call the "newDay:month:year" object
> creation routine for the Date object to get back a date stamp or
> timestamp... Comments?
Nevermind.. I just noticed that the date returned is actually a
Seaside.Date object that just happens to look like a string.. I as able
to cast it back to a timestamp using "asTimeStamp" without problems..
More information about the Seaside