Java程序:在Date数据类型中需要YYYY-MM-DD格式的当前日期,没有时间
我只需要yyyy-mm-dd格式的Date,因为DB2表具有10个日期列精度。
Date date = new Date(); String modifiedDate= new SimpleDateFormat("yyyy-MM-dd").format(date);
这样做。
我只需要yyyy-mm-dd格式的Date,因为DB2表具有10个日期列精度。
Date date = new Date(); String modifiedDate= new SimpleDateFormat("yyyy-MM-dd").format(date);
这样做。