public class Hello{
public static void main(String[] args){
java.text.SimpleDateFormat sim = new java.text.SimpleDateFormat("yyyy年MM月dd月 E HH时mm分ss秒");
System.out.println(sim.format(new java.util.Date()));
}
}
这用SimpleDateFormat就行了
http://www.blogjava.net/zygcs/archive/2006/12/21/89280.html