Java LocalDate Calculate getLrsLocalDate(String lbdcDate)

Here you can find the source of getLrsLocalDate(String lbdcDate)

Description

Extract the LocalDate value from the LRS formatted date string.

License

BSD License

Exception

Parameter Description

Declaration

public static LocalDate getLrsLocalDate(String lbdcDate) 

Method Source Code

//package com.java2s;
//License from project: BSD License 

import java.time.*;
import java.time.format.DateTimeFormatter;

public class Main {
    public final static DateTimeFormatter LRS_DATE_ONLY_FORMAT = DateTimeFormatter.ofPattern("yyyy-MM-dd");

    /**/*  w  w w  . ja v  a 2  s . c  o m*/
     * Extract the LocalDate value from the LRS formatted date string.
     * @throws java.time.format.DateTimeParseException if unable to parse the requested result.
     */
    public static LocalDate getLrsLocalDate(String lbdcDate) {
        return LocalDate.from(LRS_DATE_ONLY_FORMAT.parse(lbdcDate));
    }
}

Related

  1. getEndDateOfMonth(LocalDate date)
  2. getFirstDayOfTheMonth(final LocalDate date)
  3. getLastDayInMonth(LocalDate localDate)
  4. getLastDayOfTheQuarter(final LocalDate date)
  5. getLocalDateBydayAndWeek(LocalDate localDate, int weekNumber, int dayNumber)
  6. getMax(@Nonnull final LocalDate aDate1, @Nonnull final LocalDate aDate2)
  7. getNextNoWeekedDay(LocalDate today)
  8. getQuarterBounds(final LocalDate date)
  9. getTimeDifferenceInDays(LocalDate to)