From ccd228fd3d4a7fc4a97e6693ab2704d0e8e6e5ab Mon Sep 17 00:00:00 2001 From: Marc Michalsky Date: Mon, 20 Apr 2020 11:24:23 +0200 Subject: [PATCH] deutsche Datums-Pattern --- src/geburtstag/Geburtstag.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/geburtstag/Geburtstag.java b/src/geburtstag/Geburtstag.java index 9d5066e..ca04a1d 100644 --- a/src/geburtstag/Geburtstag.java +++ b/src/geburtstag/Geburtstag.java @@ -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)