且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

日期/时间选择器问题

更新时间:2022-11-18 20:12:08


好​​的,我对Vb很新,我正在为学校做一个项目。 ..有没有人知道如何根据日期/时间选择器中选择的日期计算日期,并将其显示在另一个文本框中?



您在计算什么?

如何计算?


指定



您在计算什么?

如何计算?


指定



ok,我有一个日期时间选择器,你把它设置为电影签出的日期,然后在另一个框中它告诉你多少天允许签出电影,这是根据签出的电影类型自动设置的。有了这些信息,我应该在另一个文本框中显示该日期。这是我无法弄清楚的。如何编写截止日期的代码。



i有一个日期时间选择器,您可以将其设置为检查电影的日期out,然后在另一个框中它告诉你允许检查电影的天数,这是根据签出的电影类型自动设置的,有了这些信息,我应该在另一个文本中显示该日期。框。



使用 DateAdd()功能。


OK, I am fairly new to Vb, and I am doing a project for school... Does anyone know how to calculate a date, based on the date selected in the Date/Time Picker, and have it display in another text box?

OK, I am fairly new to Vb, and I am doing a project for school... Does anyone know how to calculate a date, based on the date selected in the Date/Time Picker, and have it display in another text box?


What you are calculating ?
How you are calculating?

Specify


What you are calculating ?
How you are calculating?

Specify

ok, i have a date time picker where you set it to the date that a movie is checked out, then in another box it tells you how many days the movie is allowed to be checked out, this is set automatically based on what kind of movie is checked out, With this information I am supposed to show the date due back in another text box. That is what i can not figure out. How to write the code for the due date.


i have a date time picker where you set it to the date that a movie is checked out, then in another box it tells you how many days the movie is allowed to be checked out, this is set automatically based on what kind of movie is checked out, With this information I am supposed to show the date due back in another text box.

Use the DateAdd() function.