Java DateTimeFormatter getFormattedDateString()

Here you can find the source of getFormattedDateString()

Description

get Formatted Date String

License

Open Source License

Declaration

public static String getFormattedDateString() 

Method Source Code


//package com.java2s;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class Main {
    public static String getFormattedDateString() {
        LocalDateTime currentTime = LocalDateTime.now();
        return currentTime.format(DateTimeFormatter.ISO_LOCAL_DATE);
    }//  w ww  .  ja  v a2 s .  c om
}

Related

  1. getDateFromFormat(String dtStr)
  2. getDateTimeAttributeTimeFormat()
  3. getDateTimeFormatter()
  4. getFormatDate(String format)
  5. getFormattedDate()
  6. getFullFormatter()
  7. getGermanFormatter()
  8. getIndexGroupingPeriod_slow(String date_format)
  9. getLocalizedDateFormat( final Locale LOCALE)