Java DateTimeFormatter getPreferredDateFormat()

Here you can find the source of getPreferredDateFormat()

Description

get Preferred Date Format

License

Open Source License

Declaration

public static DateTimeFormatter getPreferredDateFormat() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.time.format.DateTimeFormatter;

public class Main {
    private static final DateTimeFormatter preferredDateFormat = DateTimeFormatter.ofPattern("dd-MM-yyyy");

    public static DateTimeFormatter getPreferredDateFormat() {
        return preferredDateFormat;
    }//from w w w . j  ava  2s .c o m
}

Related

  1. getFullFormatter()
  2. getGermanFormatter()
  3. getIndexGroupingPeriod_slow(String date_format)
  4. getLocalizedDateFormat( final Locale LOCALE)
  5. getParsedTimeOrNull(String timeText, DateTimeFormatter formatForDisplayTime, DateTimeFormatter formatForMenuTimes, ArrayList formatsForParsing, Locale timePickerLocale)
  6. getShortDateManualEntryFormatter()
  7. getShortFormatter(Locale locale)
  8. getStartOfDay(Date dateToFormat)
  9. getTime(final String time, final DateTimeFormatter formatter)