Android Date String to Date Convert fromStringFR(String dateString)

Here you can find the source of fromStringFR(String dateString)

Description

from String FR as format "dd/MM/yyyy"

License

Open Source License

Declaration

public static Date fromStringFR(String dateString)
            throws ParseException 

Method Source Code

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

import java.text.ParseException;
import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static final String DATE_FORMAT_dd_MM_yyyy = "dd/MM/yyyy";

    public static Date fromStringFR(String dateString)
            throws ParseException {
        return fromString(dateString, DATE_FORMAT_dd_MM_yyyy);
    }//from ww  w  . j a v a2 s. c  o  m

    public static Date fromString(String dateString, String format)
            throws ParseException {
        SimpleDateFormat inputFormat = new SimpleDateFormat(format);
        return inputFormat.parse(dateString);
    }
}

Related

  1. ParseDate(String str)
  2. ParseUTCDate(String str)
  3. formatToDate(String date)
  4. fromStringUS(String dateString)
  5. getDateFromString(String dateString, String dateFormat)
  6. getDefaultDateTimeString(String date, Locale locale)
  7. getShortDateTimeString(String date, Locale locale)