python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
DateTimeFormatter - java.lang.IllegalArgumentException: Too many pattern letters: a
I have the following line in my java code where I am trying to format a date string
ZonedDateTime zonedDateTime= ZonedDateTime.ofInstant(instant, tz);
DateTimeFormatter formatter = DateTimeFormatter...
java12399900
Votes: 0
Answers: 1
Java 17: DateTimeFormatter not localising AM/PM marker
I currently am migrating a piece of software from Java 11 to Java 17 and noticed that DateTimeFormatter has changed its behaviour when formatting time that contains the AM/PM marker. Earlier, that mar...
domkol
Votes: 0
Answers: 1
Java DateTimeFormatter - Adding days sometimes provides a wrong result
Currently we have implemented the following:
LocalDateTime actualDate = LocalDateTime.now();
DateTimeFormatter format = DateTimeFormatter.ofPattern("dd.MM.yyyy");
String fromDate = format.fo...
Aldaris
Votes: 0
Answers: 0
DateTimeFormatter on Android outputs strange placeholders
The DateTimeFormatter class on Android 12 (Pixel 3a) outputs strange placeholders when formatting a local time.
Sample code:
val sampleTime = LocalTime.of(13, 12, 45)
val sampleFormatter = Dat...
Alessandro Mulloni
Votes: 0
Answers: 0