Here you can find the source of parseOpenMrsDate(String date)
public static Date parseOpenMrsDate(String date) throws ParseException
//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 }