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 - convert an epoch value into a Date based off timezone?
I have the following 3 fields in my Appointment entity:
private Long epochTime;
private String timezone;
private Calendar localAppointmentTime;
the timezone would be e.g. America/New_York
If the epoc...
java12399900
Votes: 0
Answers: 1
How deserialize from LocalDate and/or LocalDateTime to ZonedDateTime?
I need to create a class that implements JsonbDeserializer < ZonedDateTime > , but, the data (string) to be parsed could be in this format "2021-05-31" or this format "2021-05-31T...
Luciano Borges
Votes: 0
Answers: 1
DateTimeParseException while parsing date using ZonedDateTime
I have the below program and looks like ZonedDateTime is not able to parse the date string. Should I use a different date format or different library to parse?
import java.time.ZonedDateTime;
import j...
Zack
Votes: 0
Answers: 2