grails date from params in controller

Posted by nils petersohn on Stack Overflow See other posts from Stack Overflow or by nils petersohn
Published on 2010-05-20T08:07:31Z Indexed on 2010/05/20 8:10 UTC
Read the original article Hit count: 291

Filed under:
|
|
|

y is it so hard to extract the date from the view via the params in a grails controller?

i don't want to extract the date by hand like this:

instance.dateX = parseDate(params["dateX_value"])//parseDate is from my helper class

i just want to use instance.properties = params you know :)

in the model the type is java.util.Date and in the params is all the information (dateX_month, dateX_day, ...)

i searched on the net and found nothing on this :( i hoped that grails 1.3.0 could help but still the same thing.

i can't and will not belief that extracting the date by hand is nessesary!

© Stack Overflow or respective owner

Related posts about grails

Related posts about groovy