Android Date String Parse parseSimpleDate(String dateString)

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

Description

parse Simple Date

Declaration

public static Date parseSimpleDate(String dateString) 

Method Source Code

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
import android.util.Log;

public class Main{
    public static Date parseSimpleDate(String dateString) {
        SimpleDateFormat formatter = new SimpleDateFormat("DD/MM/yy",
                Locale.UK);//from w w  w  .  j av a  2s.  co  m
        Date date = null;
        try {
            date = (Date) formatter.parse(dateString);
        } catch (ParseException e) {
            e.printStackTrace();
        }
        return date;
    }
}

Related

  1. parseDate(String date)
  2. parseDate(String rawDate)
  3. parseDateStr(String dateStr, String srcPattern, String destPattern)
  4. parseDateString(String dateStr, String pattern)
  5. parseDateString(String dateStr, String pattern, Locale locale)
  6. parseUTCFormattedDateString(String dateString)
  7. parseYoutubeDate(String rawDate)
  8. stringToDate(String str)
  9. toDate(String sdate)