Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个输入字段,我可以在其中从日期选择器中选择日期。基于这个选定的值,我需要获取 30 天的回溯日期。
提前致谢。
Calendar cal = Calendar.getInstance(); cale.add(Calendar.DATE, -30); System.out.println("Date = " + cal.getTime());