Hi
With the advent of LocalDate and LocalDateTime, I was wondering what is the most efficient way to converting a Java Date to/from LocalDate or LocalDateTime.
Is it:
localDate.toDateMidnight().toDate()?
and
localDate = new LocalDate(myJavaDate);
and same for LocalDateTime?
Since YearMonthDay and co are going to be deprecated at some point, I will have a look at the hibernate contribution so that LocalDate/LocalDateTime can also be stored in Hibernate, unless somebody has done it already (or is nearly done...)
Thanks & regards from London (yes, the English one),
Benoit
With the advent of LocalDate and LocalDateTime, I was wondering what is the most efficient way to converting a Java Date to/from LocalDate or LocalDateTime.
Is it:
localDate.toDateMidnight().toDate()?
and
localDate = new LocalDate(myJavaDate);
and same for LocalDateTime?
Since YearMonthDay and co are going to be deprecated at some point, I will have a look at the hibernate contribution so that LocalDate/LocalDateTime can also be stored in Hibernate, unless somebody has done it already (or is nearly done...)
Thanks & regards from London (yes, the English one),
Benoit
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Joda-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/joda-interest
