Java tutorial
import java.time.LocalDate; import java.time.format.DateTimeFormatter; public class Main { public static void main(String[] args) { LocalDate a = LocalDate.parse("20140630", DateTimeFormatter.BASIC_ISO_DATE); System.out.println(a); } }