23 lines
680 B
Java
23 lines
680 B
Java
package Date;
|
|
|
|
import java.text.SimpleDateFormat;
|
|
import java.util.Date;
|
|
|
|
public class DateFormatConverter {
|
|
public static String convertDate(String inputDate) {
|
|
// Implementiere deine Lösung hier
|
|
|
|
return null; // Ersetze diese Zeile mit deinem Ergebnis
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
// Teste deine Lösung hier
|
|
String inputDate = "25.04.2024";
|
|
String convertedDate = convertDate(inputDate);
|
|
if (convertedDate != null) {
|
|
System.out.println("Ursprüngliches Datum: " + inputDate);
|
|
System.out.println("Konvertiertes Datum: " + convertedDate);
|
|
}
|
|
}
|
|
}
|