Java Date ISO Parse tryParse(String isoDateTime)

Here you can find the source of tryParse(String isoDateTime)

Description

try Parse

License

Open Source License

Declaration

public static Date tryParse(String isoDateTime) throws ParseException 

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 SimpleDateFormat ISO_SDF_DATETIME = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");

    public static Date tryParse(String isoDateTime) throws ParseException {
        return ISO_SDF_DATETIME.parse(isoDateTime);
    }// www .  j  a v a  2s  . co  m
}

Related

  1. toCalendar(final String iso8601string)
  2. toDate(String isoDate)
  3. toIsoString(Calendar value)
  4. toIsoString(Date date)
  5. toStringForComparison(Date date)