Q:

How to extract portions of joda Date time effectively? 

I have a Joda Date Time object that contains date and time fields and I wish to extract the date and time portions into 2 different sql date and time objects (java.sql.).  I thought converting the DateTime to milliseconds and storing it in the respective sql objects would do the trick however it produces calculation errors further upstream in my app logic as one is === to the other. 

A:

Best way I've found to do this so far is what I've described in my comment on the question and then convert back to sql time using:
new java.sql. Date(locDate.toDateTime(LocalTime. MIDNIGHT).getMillis()));
new java.sql. Time(locTime.toDateTimeToday().getMillis()) );

Couldn't find anything in the DateTime object API to extract the respective parts.