Controlling value returned from Canvas' dateInput

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Controlling value returned from Canvas' dateInput

Rick Flower
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?



_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Controlling value returned from Canvas' dateInput

Rick Flower
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..
Sorry..



_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside