Here you can find the source of parseDate(String date)
static public DateTime parseDate(String date) throws ParseException
//package com.java2s; //License from project: Open Source License import java.text.ParseException; import java.text.SimpleDateFormat; import org.joda.time.DateTime; public class Main { private static final SimpleDateFormat inputDateFormat = new SimpleDateFormat("yyyyMMdd-hhmmss"); static public DateTime parseDate(String date) throws ParseException { try {/*from w w w. j a v a 2 s.c o m*/ return new DateTime(inputDateFormat.parse(date)); } catch (ParseException e) { throw e; } } }