Here you can find the source of parseDate(String date)
Parameter | Description |
---|---|
date | a parameter |
public static Date parseDate(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 { private static final SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm"); /**//from ww w. j ava 2s . c om * Converte de String para Data * @param date * @return */ public static Date parseDate(String date) { try { return sdf.parse(date); } catch (ParseException ex) { return null; } } }