I'm very new to Joda api and I have the call like this:
LocalTime time = new LocalTime("13");
it prints as:13:00:00.000
.
I wish I could display it like this: 1:00 PM
.
How I can achieve that?
Thanks in advance
Try the following:
DateTimeFormatter builder = DateTimeFormat.forPattern("hh:mm:ss.SSa");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With