未来 7 天自动日期选择器
我有两个日期选择器,如果我在第一个日历中选择一个日期,它必须在第二个日历中标记下一个第七个日期。前任。第一个日期将在第一个日历 (01/01/22) 中选择,然后它必须在自动标记的下一个日历中显示 (07/01/22)。有想法这样做吗?我是 React js 的新手。如果我选择开始日期,则结束日期必须填写接下来 7 天的日期。
I have two date pickers, if I select a date in the 1st calendar it must mark the next seventh date in the second calendar. Ex. 1st date will be selected in 1st calendar (01/01/22) then it must show (07/01/22) in the next calendar auto marked. Any idea to do this? I am new to react js. If I select Start date, then the end date must be filled with a date next seven days.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它会因您使用的日期选择器库而有所不同,但类似的东西应该可以工作(伪代码):
It will differ on the date picker library you're using but something like this should work (pseudo code):