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

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -