I have a code which shows me the current date and time when I run my application
DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\"); Calen
Use simple date formatter with hh:mm as format.
SimpleDateFormat sdf = new SimpleDateFormat("HH:MM a");
Click here for complete program.