Check out example codes for "java convert date to joda datetime". It will help you in understanding the concepts better.

Code Example 1

Date new Date();
DateTime dateTime = new DateTime(date);

Learn ReactJs, React Native from akashmittal.com