why isn't this correct?
package en.codegym.task.pro.task16.task1619;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
/*
A simple pattern
*/
public class Solution {
static LocalDateTime localDateTime = LocalDateTime.now();
public static void main(String[] args) {
DateTimeFormatter d = DateTimeFormatter.ofPattern(
"dd.MM.yyyy H 'h' m 'min'"
);
System.out.println(d.format(localDateTime));
}
}
System.out.println(localDateTime.format(d));
Sometimes they require a very certain implementation. 2. Usually they work with US and not EU locale. So I'd try to change the output in that way MM.dd.yyyy yeah, I admit.. you really have to be desperate for that :) And you always could try to write an email to support. They should know what validation is looking for.