java.util.Date now = df.parse("2004-03-26 13:31:40");不写import语句,这样调用也是可以的清奇!不对测试了一下,可以这么写,但是还是要 import java.util.Date;