SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMddHHmm\"); java.util.Date parsedDate = sdf.parse(\"201212130900\"); java.sql.Timestamp timestamp = new java.sql.Times
In java, to get a formated date, you would do the following:
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmm"); String sdf.format(myDate);
There are loads of options in SimpleDateFormat. I have attached the JavaDoc for you.