Java Ninja Chronicles By Norris Shelton

Things I learned in the pursuit of code

How do you get a Joda DateTime out of a localDate with is defaulted to Midnight? This is the common case of I have a date, but I need to have a time on it now and that time would be midnight.

LocalDate localDate = new LocalDate();
localDate.toDateTimeAtStartOfDay();

February 13th, 2014

Posted In: Java, Joda-Time

Leave a Reply

Your email address will not be published. Required fields are marked *

WP to LinkedIn Auto Publish Powered By : XYZScripts.com