i revise and add imports and method on your code...hope it helps, i am a newbie too ☺
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
*...