24-hour Format instead of 12-hour Format

I'm using the following to get the current time.

java.util.Date date =new java.util.Date();

SimpleDateFormat sdf =new SimpleDateFormat("hh:mm:ss");

String dateString = sdf.format(date);

That works perfectly, except for the fact that we don't use the 12-hour format, but the 24-hour format. I searched the web, but couldn't find a script to simply get '14:50' instead of '2:50'. Anyone?

[516 byte] By [Nidhuggura] at [2007-11-27 4:12:26]
# 1
Have you really read the API document ? http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.htmlThe answer is there !!hh is for 12 hours, you need something else.
rym82a at 2007-7-12 9:18:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
F.uck me! I probably used the wrong key words to search, thanks alot!
Nidhuggura at 2007-7-12 9:18:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...