Home » Developer & Programmer » JDeveloper, Java & XML » hour: it considers 12:00 as 00:00
hour: it considers 12:00 as 00:00 [message #167678] Sat, 15 April 2006 06:03
plaisirJdev
Messages: 6
Registered: April 2006
Junior Member
hi everybody,

pls can someone help me with that:

i want to get the hour: 12:00 but the program considers it as 00:00 Embarassed

here is my code:

Date heure = new Date();
SimpleDateFormat hrf = new SimpleDateFormat("hh:mm:ss");

try{
heure = hrf.parse("12:00:00");
}
catch(ParseException e) {
System.out.println("impossible de parser "+ e.getMessage());
}

any help pls?!
Previous Topic: palette inactive
Next Topic: SRDemo ???: TopLink Map 'SRMap' -> One of the packages is incomplete.
Goto Forum:
  


Current Time: Fri Nov 22 05:47:58 CST 2024