Java Parse Date parseDate(String sDate, String sFormat)

Here you can find the source of parseDate(String sDate, String sFormat)

Description

parse Date

License

Open Source License

Declaration

public static java.util.Date parseDate(String sDate, String sFormat) throws ParseException 

Method Source Code

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

import java.text.ParseException;

public class Main {

    public static java.util.Date parseDate(String sDate, String sFormat) throws ParseException {
        java.text.SimpleDateFormat formatter = null;

        java.util.Date utildate = null;
        formatter = new java.text.SimpleDateFormat(sFormat);
        utildate = formatter.parse(sDate);
        return utildate;
    }// w w  w .ja  v a 2  s.co m
}

Related

  1. parseDate(String sDate)
  2. parseDate(String sDate)
  3. parseDate(String sDate)
  4. parseDate(String sDate, Locale locale)
  5. parseDate(String sDate, SimpleDateFormat _dateFormat)
  6. parseDate(String sDate, String sSourceFormat, String sDestinationFormat)
  7. parseDate(String sdate, String timeFormat, String timeZone)
  8. parseDate(String sDateTime, String sPattern)
  9. parseDate(String source, String format)