I want current time in millis and then to store it in 12 hour format but with this piece of code I am getting 24 hour format time.
long timeInMillis = System
I re-encounter this in the hard way as well. H vs h, for 24-hour vs 12 hour !