Hallo,
ich bekomme es leider nicht hin und finde auch nichts im Netz.
Ich bekomme immer, 01 angezeigt und nie 13 ;( ..
Was mache ich falsch?
Danke schon mal für etwaige Hilfe im Voraus!
ich bekomme es leider nicht hin und finde auch nichts im Netz.
Code:
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm aa");
Date date = df.parse("2011-08-23 1:00 PM");
df = new SimpleDateFormat("HH");
System.out.println(df.format(date));
Ich bekomme immer, 01 angezeigt und nie 13 ;( ..
Was mache ich falsch?
Danke schon mal für etwaige Hilfe im Voraus!