import java.text.Format; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static void main(String[] argv) throws Exception { Format formatter = new SimpleDateFormat("dd-MMM-yy"); Date date = (Date) formatter.parseObject("29-Jan-02"); System.out.println(date); } }