逻辑日期 [英] Date with Logic

查看:94
本文介绍了逻辑日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我创建了Parking Project.Just你认为我们有两个文本-box  with  calendar  control(From-date   To-date)。如果我们指定日期,则自动
金额将显示在下面的文本框中。例如,10天意味着金额显示,如$ 50。 10天将自动计算从即日起至今日。



请尽快给出解决方案。

解决方案

您的问题不是很清楚。你究竟想要从日期和迄今为止计算出来的?如果您希望将10天添加到FromDate属性,那么您可以使用DateTime.AddDays函数


http://msdn.microsoft.com/en-us/library/system.datetime.adddays.aspx

 Dim toDate as Date = fromDate.AddDays(10)


Hi All,

I have created Parking Project.Just you think we have two text-box with calendar control(From-date and To-date).If we Assign Date,Automatically Amount will  display  in below text-box. For Example 10 days means Amount display like $50. that 10 days will automatically calculate From-date to To-date.

Please give Solution  soon as possible.

解决方案

Your question isn't very clear. How exactly do you want From date and To-date to calculated? If you are looking to add for example 10 days to FromDate property then you can use DateTime.AddDays function

http://msdn.microsoft.com/en-us/library/system.datetime.adddays.aspx

Dim toDate as Date = fromDate.AddDays(10)


这篇关于逻辑日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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