Originally Posted by hungleon88
|
|
the problem here is i use method getvalueAt of DefaultModelTable , and this method return an Object ,
|
And? What do you think a Date is? Cottage Cheese? A Date is also an Object, did you even
try to cast it?
|
Quote:
|
so i cannot casting to Date type (
|
And, did you even try?
|
Quote:
|
|
and when i display it, it include 00:00:00
|
Then what you are printing is either a Date (with no time data) or a String. With a Date, no problem, just cast it, with a String, no problem, use SimpleDateFormat, and parse it. If what you had were actually an instance of "Object" (as you claim) then it would print something like "java.lang.Object@d9f9c3", and not any kind of date/time text.
Show the code you're using (only the relevant parts please, not some novel). And,
please, don't tell me you have all sorts of persistence and business logic code tied up in the middle of your GUI code.