After formatting a datetime, the time displays AM or PM in upper case, but I want it in lower case like am or pm.
This is my code:
public class Timei
Try this:
System.out.println("time is " + ts.toLowerCase());
Although you may be able to create a custom format as detailed here and here
Unfortunately out of the box the AM and PM do not seem to be customisable in the standard SimpleDateFormat class