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.
我想为单个事件添加三种不同类型的提醒。
示例:对于一个事件,我想在事件截止日期前 1 周添加一个提醒,并分别在 1 天和 1 小时前添加另外两个提醒。
我设法为单个事件设置了提醒,但是在提醒菜单中设置正确的时间格式时遇到了问题。
提醒时间显示当从本地日历按下特定事件时,它显示两个连续的 4 或 5 位数字。在提醒列表中,而不是正确的日期或星期格式。
要添加提醒,我正在使用 Reminder.MINUTES 。
除分钟格式外,是否可以添加日或周格式的提醒?
试试这个
DateFormat dateFormat = dateFormat.format(new Date(yourTime));