posted 17 years ago
Carol: sorry for the confusing:
Let me try again:
On the jsp: there are two seperate field: Date, and Hour, User can enter date with format yyyy-MM-dd and Hour hh:mm:ss
When I got this two fields, i need to somehow reformat to be the whole thing yyyy-MM-dd hh:mm:ss,
I try to concate the string, but it won't work
So from the above code , you are saying that I just using d1 to passing into the method that epxect Date
private String getSomething (Date myDate) // passing d1 in here, but I got stuck at the hour,minute,seconde.
any ideas or hints. Greatly appreciated THNkS