s啊。。getTime()...........public int getDays(Date b,Date a) 

return (a.getTime()-b.getTime())/(3600*24*1000) 
}