I am getting date value from DB as a long value. I am converting this to string to use parse function. Given below is my code
Try this
Date date1 = new SimpleDateFormat("MMddyyyySSS").parse(strDate1);
Hope it will works for 12302012235 , but i assume 235 is millisec.