Here you can find the source of parseDate(String value)
public static int parseDate(String value)
//package com.java2s; //License from project: Open Source License import org.joda.time.format.DateTimeFormatter; import org.joda.time.format.ISODateTimeFormat; import java.util.concurrent.TimeUnit; public class Main { private static final DateTimeFormatter DATE_FORMATTER = ISODateTimeFormat.date().withZoneUTC(); public static int parseDate(String value) { return (int) TimeUnit.MILLISECONDS.toDays(DATE_FORMATTER.parseMillis(value)); }//from w w w .java 2s . c o m }