How to format Joda-Time DateTime to only mm/dd/yyyy?

I have a string “11/15/2013 08:00:00“, I want to format it to “11/15/2013“, what is the correct DateTimeFormatter pattern?

I’ve tried many and googled and still unable to find the correct pattern.

edit: I am looking for Joda-Time DateTimeFormatter, not Java’s SimpleDateFormat..

10 Answers
10

Leave a Comment