Top "Localdate" questions

LocalDate is part of the java.

How to format LocalDate object to MM/dd/yyyy and have format persist

I am reading text and storing the dates as LocalDate variables. Is there any way for me to preserve the …

java parsing formatting localdate
Java 8 – Create Instant from LocalDateTime with TimeZone

I have a date stored in the DB in string format ddMMyyyy and hh:mm and the TimeZone. I want …

java date java-8 localdate
Error java.time.format.DateTimeParseException: could not be parsed, unparsed text found at index 10

I´m trying to pase the next String using LocalDateTime, but I always get de unparsed text found error: Error …

date java-8 java-time parse-error localdate
How to convert from Instant to LocalDate

I have an Instant coming from a source that should, according to the spec, be a LocalDate, but don't see …

java-8 localdate java.time.instant java-time
How can I return LocalDate.now() in milliseconds?

I create date now: ZoneId gmt = ZoneId.of("GMT"); LocalDateTime localDateTime = LocalDateTime.now(); LocalDate localDateNow = localDateTime.toLocalDate(); Then I want …

java-8 timestamp java-time localdate
Java: Unable to obtain LocalDate from TemporalAccessor

I am trying to change the format of a String date from EEEE MMMM d to MM/d/yyyy by, …

java java-time date-parsing localdate
How to send Date in REST API in POST method

I am trying to build RESTful web service with Spring support. I am getting following exception when I am trying …

java json spring rest localdate
How to detect the given date format using java

I have a method that gets a string and change that to a particular date format but the thing is …

java localdate
How to convert "2020-12-20T00:00:00.000Z" to java.util.Date?

I tried to use DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.ENGLISH); LocalDate date = LocalDate.parse(d.toString(), …

java date localdate datetime-parsing datetimeformatter
Java 8 LocalDate to JavaScript Date

I would like to convert this Java LocalDate to a JavaScript Date: { "date": { "year": 2016, "month": "NOVEMBER", "dayOfMonth": 15, "monthValue": 11, "dayOfWeek": "TUESDAY", "…

javascript java angularjs localdate