Java Date Format Check checkDateFormat()

Here you can find the source of checkDateFormat()

Description

check Date Format

License

Apache License

Declaration

private static void checkDateFormat() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.text.SimpleDateFormat;

public class Main {
    public static final String DATE_FORMAT = "dd/MM/yyyy";
    private static SimpleDateFormat dateFormat;

    private static void checkDateFormat() {
        if (dateFormat == null) {
            dateFormat = new SimpleDateFormat(DATE_FORMAT);
        }/* w w w .j ava 2s .c  o m*/
    }
}

Related

  1. checkDate(Date date)
  2. checkDate(String begingDate, String endDate)
  3. checkDate(String deadline)
  4. checkDateBetween(String time)
  5. checkDateByMask(String sDateValue, String sDateFormat)
  6. checkDateFormat()
  7. checkDateFormat(String pattern)
  8. checkDateFormat(String strTime, String pattern)
  9. checkDateFormatAndValite(String strDateTime, String format)