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..
Another way of doing that is:
I'm not exactly certain, but I think this might be faster/use less memory than using the
.split()
method.just want string:
if want datetime: