Java Parse Date parseDate(String date)

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

Description

parse Date

License

Open Source License

Declaration

private static Date parseDate(String date) 

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 {
    private static Date parseDate(String date) {
        try {/*  ww w. ja va  2  s. c  om*/
            return createFormater().parse(date);
        } catch (ParseException e) {
            throw new RuntimeException("Unexpected date format " + date);
        }
    }

    private static SimpleDateFormat createFormater() {
        return new SimpleDateFormat("dd.MM.yyyy HH:mm:ss.S");
    }
}

Related

  1. parseDate(String d)
  2. parseDate(String datastr, String pattern)
  3. parseDate(String date)
  4. parseDate(String date)
  5. parseDate(String date)
  6. parseDate(String date)
  7. parseDate(String date)
  8. parseDate(String date)
  9. parseDate(String date)