Combining TimeItem and DateItem Values

I need to match time value for TimeItem and date value from DateItem in smartgwt. As a result, I want the date object for java.util.Date.I to try to combine the two. I couldn't do it.

Sample code:

DateItem date=new DateItem();
TimeItem time=new TimeItem();
DynamicForm form=new DynamicForm();
form.setFields(date,time);

// java.util.Date selectedDate= ? Here I need the output

      

Can anyone help with this? thanks

+1


a source to share


1 answer


I haven't tried this, but this is my educated guess:



You can set dateItem.setInputFormat (...) and dateItem.setDisplayFormat (...) using a date format that includes time as well.

0


a source







All Articles