Java LocalDate Calculate getDateCriteria(LocalDate startDate, LocalDate endDate)

Here you can find the source of getDateCriteria(LocalDate startDate, LocalDate endDate)

Description

get Date Criteria

License

Apache License

Declaration

private static String getDateCriteria(LocalDate startDate, LocalDate endDate) 

Method Source Code

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

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

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

    private static String getDateCriteria(LocalDate startDate, LocalDate endDate) {
        return "startDate = " + startDate.format(formatter) + " and endDate = " + endDate.format(formatter);
    }// w w  w. ja  va  2s .  c  o  m
}

Related

  1. getAge(LocalDate birthDay)
  2. getDate(ChronoLocalDate date)
  3. getDate(Console console, Function validator)
  4. getDate(final LocalDate localDate)
  5. getDate(LocalDate d, String tzId)
  6. getDateStart(LocalDate localDate)
  7. getEndDateOfMonth(LocalDate date)
  8. getFirstDayOfTheMonth(final LocalDate date)
  9. getLastDayInMonth(LocalDate localDate)