如何在使用Ajax日历扩展器时自动计算天数 [英] how to auto calculate days when using ajax calendar extender

查看:124
本文介绍了如何在使用Ajax日历扩展器时自动计算天数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

如何自动计算用户键入的天数.我希望它只要在ajax日历扩展程序中选择日期就可以自动计算.

该程序实际上是允许用户在老板指定的任务中输入密钥的.还有一些文本框,用于接收开始日期,到期日.差异在当前日期和到期日期之间.因此,如果比较日期大于到期日期,则我将显示红色的指示器.如果比较日期仍处于期间任务,则指示器将显示绿色. >

在此先感谢
musiw.

hi all,

how to auto calculate days that key in by user.i want it to auto calculate whenever they just select the date from ajax calendar extender.

the program is actually allow user key in their task which is given by boss.there are textbox which receive start date, due date. the diff is between current date and due date.so if the diff days is greater than due date then i will display indicator in red color.if the diff date is still in period task, then the indicator will show green color.


thanks in advance
musiw.

推荐答案

您希望它如何工作?
How do you expect that to work?
Diff = end - start
if (diff > end) RED



由于您使用的是结束数据来计算差异,因此将它与结束日期进行比较是没有意义的,因为它不能是结束日期以外的任何内容...



Since you are using the end data to calculate the difference, there is no point in comparing it to the end date because it cannot be anything other than on the end date...


这篇关于如何在使用Ajax日历扩展器时自动计算天数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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