import java.text.SimpleDateFotmat;
import java.util.Date;SimpleDateFormat sdtformat = new SimpleDateFormat("MM-dd hh:mm:ss");
Date dt = new Date();
String strdt = sdtformat.format(dt);
import java.util.Date;SimpleDateFormat sdtformat = new SimpleDateFormat("MM-dd hh:mm:ss");
Date dt = new Date();
String strdt = sdtformat.format(dt);
-----------关注中
String aa="Jul 6 04:03:34";
Date t=new Date("2003 "+aa);-:)