请大家看下有没有自动获得日期为当天的年月日,不需要小时,分钟和秒[解决办法]Carlendar c=Carlendar.getInstance(); int year=c.getTime().getYear() int month=c.getTime().getMonth(); int day=c.getTime().getDay(); String date =year+ "- "+month+ "- "day;