DatePicker返回您单击的日期。但是,Date对象的时间设置为中午。有没有办法将其从中午更改为其他时间?
Datepicker dp;
//UI does some stuff
Date offset = new Date(somemilliseconds); //replace somemilliseconds with the value you want to roll forward or backwards
dp.setValue(dp.getValue()+offset); //or minus