Java Parse Date parseDateForFilter(String date)

Here you can find the source of parseDateForFilter(String date)

Description

parse Date For Filter

License

Open Source License

Declaration

public static Date parseDateForFilter(String date) 

Method Source Code


//package com.java2s;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class Main {
    private final static SimpleDateFormat filterDatesFormatter = new SimpleDateFormat("dd/MMM/yy", Locale.ENGLISH);

    public static Date parseDateForFilter(String date) {
        if (date != null) {
            try {
                return filterDatesFormatter.parse(date);
            } catch (ParseException e) {
            }/*from ww w. j a v  a2s.  com*/
        }
        return null;
    }
}

Related

  1. parseDate2String(Date date)
  2. parseDate4UrlCreateTime(String dateStr)
  3. parseDateAllowNull(String date)
  4. parseDateAndGetLong(String date)
  5. parseDateAsString(Date value)
  6. parseDateFormat(String s, String pattern, TimeZone tz)
  7. parseDateFrom(String dateStr)
  8. parseDateFromDateStr(String date)
  9. parseDateFromDateTimeStr(String date)