任何人都可以帮助在日历中设置默认日期 [英] Can anyone help with setting default date in calender

查看:110
本文介绍了任何人都可以帮助在日历中设置默认日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




i几乎完成了这个代码,除了一个小细节,


当应用程序启动时,它应该显示当前抵达日期和当前日期的日期加上第二个出发日期的三天。


i有到达日期,但我不能设置出发日期,


i知道它的类似.AddDays(3),但是当我把这个放到出发日期它会比当前日期提前3天开始增加3天的总价格而不是日期。


有人可以帮帮我

hi

i have this code almost completed, apart from one small detail,

When the application starts, it should display the current date in the arrival date and the current date plus three days in the second departure date.

i have the arrival date working but i cant set the departure date,

i know its something like .AddDays(3), but when i put this to departure date it adds 3 days to total price instead of date begining 3 days ahead of current date.

could someone please help me out

展开 | 选择 | Wrap | 行号

推荐答案

只预设了dateTimePicker的值。
just preset the value of dateTimePicker.
展开 | 选择 | Wrap | 行号


感谢您回复adriancs,但是回复不起作用,它只增加3天的总停留时间,而不是 - 当应用程序启动时,它应显示当前日期加上出发日期的三天。


在你的回答中,出发日期始终保持在圣母院,并且不允许用户输入日期选择,
thanks for replying adriancs, but your reply does not work, it only adds 3 days to the total stay, instead of - When the application starts, it should be displaying the current date plus three days in the departure date.

In your answer the departure date stays the dame all the time and does not allow user to enter selection of date,


如果您不介意,可以向我解释一下总停留意味着什么..和

你使用日历控制还是有其他控制..如果你澄清我,我会尽快给你重播..
Hi if you don''t mind can you explain me about total stay means..and
are you using calendar control or is there any other control..if you clarify me i will give you replay soon..


这篇关于任何人都可以帮助在日历中设置默认日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆