We are using Strings for now. Hopefully we will get a working component like dateTimePicker that will automatically change a String to Dates (or Calendars) and back soon.
I thought the displayFormat was for display purposes only. But "HH:mm" does not work when giving the currentTimePart "16:15". It still gives the "00:00" We also have the following issue... When we change the currentTimePart to "16:35" and submit the form, the currentTimePart value is: "2007-06-28T16:35:00+02:00". I guess we can get the time with SimpleDateFormat (pattern something like "yyyy-MM-dd'T'HH:mm")? Jeromy Evans - Blue Sky Minds wrote: > > Kishen Simbhoedatpanday wrote: >> Thank you Jeromy! >> >> When using the 'displayFormat="h:mm a"' in the datetimepicker tag... >> >> So we set the following in our Action method: >> this.setCurrentTimePart("16:15"); >> > The exception is in the DateFormat.parse() method called by the > DateTimePicker. "16:15" is an invalid because "h:mm a" is only a 12 > hour format. You need "HH:mm" > See the javadoc for SimpleDateFormat for the description of the pattern. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/DateTimePicker-%28type-time%29-problem-tf3994225.html#a11345492 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]