Here you can find the source of convertDatabaseDateToUS(LocalDate databaseDate)
public static String convertDatabaseDateToUS(LocalDate databaseDate)
//package com.java2s; //License from project: Open Source License import java.time.LocalDate; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; public class Main { public static String convertDatabaseDateToUS(LocalDate databaseDate) { if (databaseDate != null) { return databaseDate.format(DateTimeFormatter.ofPattern("MM/dd/YYYY")); } else {/*from w ww . j ava 2s.com*/ return ""; } } public static String convertDatabaseDateToUS(LocalDateTime databaseDate) { if (databaseDate != null) { return databaseDate.format(DateTimeFormatter.ofPattern("MM/dd/YYYY")); } else { return ""; } } }