Here you can find the source of toString(LocalDate d)
Parameter | Description |
---|---|
d | date <p> |
public static String toString(LocalDate d)
//package com.java2s; //License from project: Apache License import java.time.LocalDate; import java.time.LocalDateTime; import java.time.LocalTime; public class Main { /**//from ww w . j ava 2 s . com * Return the string of a {@link LocalDate} or null if it's null * <p> * @param d date * <p> * @return String or null */ public static String toString(LocalDate d) { return d == null ? null : d.toString(); } /** * Return the string of a {@link LocalTime} or null if it's null * <p> * @param t time * <p> * @return String or null */ public static String toString(LocalTime t) { return t == null ? null : t.toString(); } /** * Return the string of a {@link LocalDateTime} or null if it's null * <p> * @param dt date time * <p> * @return String or null */ public static String toString(LocalDateTime dt) { return dt == null ? null : dt.toString(); } }