I am using both the native Datetime and the Noda Time library LocalDate in the project. The LocalDate is mainly used for calculation whereas Datetime is used in rest of the places.
Can someone please give me an easy way to convert between the native and nodatime date fields?
I am currently using the below approach to convert the Datetime field to Noda LocalDate.
LocalDate endDate = new LocalDate(startDate.Year, startDate.Month, startDate.Day);
LocalDateTime
?. I've created a LocalDateTime asvar dateTime = new LocalDateTime(2017, 8, 01, 22, 30, 00);
If I follow your approach, I'm able to get the Date alone and not the time. – Profound