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.
我有一个 GWT 引导 dateTimeBox,我想在当前时间戳中添加一天,我想在客户端显示默认日期到明天。尝试使用日历实例,但它给出了编译错误。请帮助我如何在不调用服务器的情况下在客户端实现这一点。
要在 GWT 中为当前日期添加一天,您必须使用CalendarUtil该类:
CalendarUtil
Date now = new Date(); CalendarUtil.addDaysToDate(now, 1); // change for the number of days, use negatives to subtract
希望能帮助到你。