Java Parse Date parseDatetime(String value)

Here you can find the source of parseDatetime(String value)

Description

parse Datetime

License

Apache License

Declaration

public static synchronized Date parseDatetime(String value) 

Method Source Code

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

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class Main {
    private static final SimpleDateFormat DATETIME_FORMATTER = new SimpleDateFormat("dd.MM.yyyy HH:mm",
            Locale.GERMAN);// ww  w  .j av a2  s  . co  m

    public static synchronized Date parseDatetime(String value) {
        try {
            return DATETIME_FORMATTER.parse(value);
        } catch (ParseException e) {
            throw new RuntimeException("Cannot parse " + value);
        }
    }
}

Related

  1. parseDateTime(String fullDateParam, String unixDateParam, Map request)
  2. parseDateTime(String s)
  3. parseDateTime(String s)
  4. parseDateTime(String s)
  5. parseDateTime(String s)
  6. parseDateTimeFromString(String datetime)
  7. parseDateTimeHuman(String dateString)
  8. parseDateTimeString(final String date)
  9. parseDateTimeString(String dateTime)