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.
Share
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:
Couldn’t find anything in the DateTime object API to extract the respective parts.