I am obtaining the current time from the mobile device and changing the format using the following code:
SimpleDateFormat currentdate = new SimpleDateFormat("MMM,dd,yyyy HH:mm:ss s");
date_n = currentdate.format(calendar.getTime());
However on some mobile devices I am getting the following output
Mar.,11,2021 12:08:26 26
A dot appears after Mar. I don't want that dot. How to handle it? Any guidelines?