deutsche Datums-Pattern

This commit is contained in:
Marc Koch 2020-04-20 11:24:23 +02:00
parent ad0b5d4d05
commit ccd228fd3d
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,8 @@ public class Geburtstag {
myBirthday = setMyBirthday();
System.out.println("Mein Geburtsdatum mit Geburtszeit ist:");
System.out.println(myBirthday);
System.out.println(myBirthday.getDayOfMonth() + "." + myBirthday.getMonthValue() + "." + myBirthday.getYear() + ", " +
myBirthday.getHour() + ":" + myBirthday.getMinute() + " Uhr");
/* Aufgabe c)