How can I insert special characters in SimpleDateFormat?
You can escape literals using single quotes.
SimpleDateFormat formatter = new SimpleDateFormat("EEE, d MMM yyyy 'at' hh:mma");
This will output Wed, 26 May 2010 at 11:17am
You can escape literals using single quotes.
SimpleDateFormat formatter = new SimpleDateFormat("EEE, d MMM yyyy 'at' hh:mma");
This will output Wed, 26 May 2010 at 11:17am