-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Format Date Object from Hibernate Bean?
PostPosted: Tue Sep 25, 2007 3:08 pm 
Newbie

Joined: Sat Sep 22, 2007 4:04 am
Posts: 7
Hello,

i have a bean class to read a table from a MSSQL DB. The bean constructs a date field(a). The field seems to be formatted diffrent from a normal Date object.
System.out.println(a)=> "2007-09-14 11:32:59.76" from Database
Date b = new Date...
System.out.println(b)=> "Mon Oct 14 12:20:19 CEST 3907"
Both a and b are date objects.
I would like to read only beans from date x till date y. It seems like a have to convert the b date object to the a date object format, allthough both have the same type.
Now i would like to know, who to do this?

kind regards

martie


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.