Here you can find the source of date(LocalDate date)
Parameter | Description |
---|---|
date | the date |
public static String date(LocalDate date)
//package com.java2s; /*/*from ww w. jav a 2 s .c om*/ * Copyright (C) 2017 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ import java.time.LocalDate; import java.time.format.DateTimeFormatter; import java.util.Locale; public class Main { /** Date format. */ private static final DateTimeFormatter DATE_FORMAT = DateTimeFormatter.ofPattern("dMMMuu", Locale.UK); /** * Converts a date to a string. * * @param date the date * @return the string form */ public static String date(LocalDate date) { return date.format(DATE_FORMAT); } }