I put a selectedDate of type Calendar in my session then if I use struts
bean tag like this

<bean:write name="selectedDate" property="time"/>
it will give me:  Wed May 09 12:17:05 EDT 2001
fine.

but what can I do to get the year only what should I put in the property=???
to represent this:
selectedDate.get(Calendar.YEAR)

and also to get the time in milliseconds. The following don't work:
<bean:write name="selectedDate" property="timeInMillis"/>
any suggestions...

Another one, I'm also playing with the datetime from Jakarta Taglibs
<dt:parse pattern="yyyy MM dd">2000 11 5</dt:parse>
and i get this 973400400000 , fine

but if i try this
<dt:parse pattern="EEE MMMM dd hh:mm:ss z yyyy">Wed May 09 12:17:05 EDT
2001</dt:parse>
I get 0  , hum do i miss something.

Thanks for the help

Max




Reply via email to