java - How to extract portions of joda Date time effectively? -


i have joda date time object contains date , time fields , wish extract date , time portions 2 different sql date , time objects (java.sql.). thought converting datetime milliseconds , storing in respective sql objects trick produces calculation errors further upstream in app logic 1 === other.

best way i've found far i've described in comment on question , convert sql time using:

new java.sql.date(locdate.todatetime(localtime.midnight).getmillis())); new java.sql.time(loctime.todatetimetoday().getmillis()) ); 

couldn't find in datetime object api extract respective parts.


Comments