implemented the display on 12h format