Java tutorial
import java.util.Date; import java.text.SimpleDateFormat; import java.text.ParseException; public class DateTest { public static void main(String[] args) throws ParseException { SimpleDateFormat sdf = new SimpleDateFormat("yyyy, MM, dd"); Date date = sdf.parse("2009, 12, 9"); System.out.println(date); } }