SyntaxFix
Write A Post
Hire A Developer
Questions
java.util.Date date = ... DateTime dateTime = new DateTime(date);
Make sure date isn't null, though, otherwise it acts like new DateTime() - I really don't like that.
date
null
new DateTime()