Here you can find the source of formatDateTime(String date)
public static Date formatDateTime(String date)
//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 formatDateTime(String date) { date = date.replaceAll("Atualizadas em", "").replace(" ", ""); SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyyHH:mm"); try {/*from w ww .j a v a 2 s . c o m*/ return format.parse(date); } catch (ParseException e) { e.printStackTrace(); return null; } } }