Java Parse Date parseDate(String src, String pattern)

Here you can find the source of parseDate(String src, String pattern)

Description

parse Date

License

LGPL

Declaration

public static Date parseDate(String src, String pattern) throws ParseException 

Method Source Code

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

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

import java.util.Date;

public class Main {

    public static Date parseDate(String src, String pattern) throws ParseException {
        return getSDFormat(pattern).parse(src);

    }// w  w w  .  java  2  s  . c  o m

    private static SimpleDateFormat getSDFormat(String pattern) {
        return new SimpleDateFormat(pattern);
    }
}

Related

  1. parseDate(String sDate, String sFormat)
  2. parseDate(String sDate, String sSourceFormat, String sDestinationFormat)
  3. parseDate(String sdate, String timeFormat, String timeZone)
  4. parseDate(String sDateTime, String sPattern)
  5. parseDate(String source, String format)
  6. parseDate(String srtDate, String pattern)
  7. parseDate(String str)
  8. parseDate(String str)
  9. parseDate(String str)