Here you can find the source of getCurrentLocalDate()
public static LocalDate getCurrentLocalDate()
//package com.java2s; //License from project: Apache License import java.time.LocalDate; import java.time.ZoneId; public class Main { public static LocalDate getCurrentLocalDate() { return LocalDate.now(ZoneId.systemDefault()); }/* ww w . jav a 2 s . co m*/ }