SimpleDateFormat will not work if he/she is starting with LocalDate, which is new in Java 8. From what I can see, you will have to use DateTimeFormatter.
LocalDate localDate = LocalDate.now(); // For reference
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd LLLL yyyy");
String formattedString = localDate.format(formatter);
That should print 05 May 1988. To get the period (AKA full stop) after the day and before the month, you might have to use "dd'.LLLL yyyy".
Answer from ProgrammersBlock on Stack Overflowjava - How can I format a 'LocalDate' variable as a string? - Stack Overflow
How to persist LocalDateTime values when using MongoDB with Spring
Don't use LocalDateTime.
More like, make sure you know the difference between Instant, ZonedDateTime and LocalDateTime before using any of those. Instant is just a point in time (example from the article: a log event), ZonedDateTime is also one of those, but is not guaranteed to remain constant in the timeline, it's tied to a timezone, and those can change their rules. LocalDateTime does not represent the same concept, it's a date in the calendar + a time of the day, and those do not resolve to a point in time without information about a timezone or offset.
I know I just repeated basically what the article said, but the uses of LocalDateTime aren't nearly as farfetched as the author makes it seem. Your alarm clock should use a LocalDateTime, in most cases.
Edit: s/used/uses
More on reddit.comNew Java 8 time api "Local"* is counterintuitive to me
Videos
SimpleDateFormat will not work if he/she is starting with LocalDate, which is new in Java 8. From what I can see, you will have to use DateTimeFormatter.
LocalDate localDate = LocalDate.now(); // For reference
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd LLLL yyyy");
String formattedString = localDate.format(formatter);
That should print 05 May 1988. To get the period (AKA full stop) after the day and before the month, you might have to use "dd'.LLLL yyyy".
It could be short as:
LocalDate.now().format(DateTimeFormatter.ofPattern("dd/MM/yyyy"));