Java Parse Date Pattern YYYY parseOpenMrsDate(String date)

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

Description

parse Open Mrs Date

License

Open Source License

Declaration

public static Date parseOpenMrsDate(String date) 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 {
    public static Date parseOpenMrsDate(String date) throws ParseException {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
        return dateFormat.parse(date);
    }//from w  ww  .  j  a  v a  2  s  .  c  o m
}

Related

  1. parseMysqlDate(String dateStr)
  2. parseMySQLDateString(String s)
  3. parseMySQLDateTime(String date)
  4. parseNanos(final String date)
  5. parseOpenMrsDate(String date)
  6. parsePurgeDateString(String str)
  7. parser(String strDate, String formatter)
  8. parserDate(String str)
  9. parseRegExcelNumber(String number)