Here you can find the source of getDate(Elements caption)
public static Date getDate(Elements caption)
//package com.java2s; //License from project: LGPL import java.util.Date; import org.joda.time.DateTime; import org.joda.time.format.DateTimeFormat; import org.joda.time.format.DateTimeFormatter; import org.jsoup.select.Elements; public class Main { public static Date getDate(Elements caption) { String date = caption.text(); DateTimeFormatter dtf = DateTimeFormat.forPattern("dd/MM/yyyy"); return DateTime.parse(date, dtf).toDate(); }//from w w w . j av a 2 s . c o m }