VB.NET中的周计算 [英] Week calculation in VB.NET

查看:101
本文介绍了VB.NET中的周计算的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在该表格中仅收取客户当周的金额$
。不允许用户在一周之前支付金额

和下周。如果金额是在当前一周之后支付的话

下一个

条目仅在下周支付。



任何人都可以帮我生成这个逻辑..



删除了SHOUTING,删除了伪代码块 - OriginalGriff [/ edit]

解决方案

从某个日期获取一周

 Debug.Print(DateDiff(DateInterval.Weekday,DateValue(Now),datevalue ( 

anydate

的)))


In that form collect week amount from customer for
current week only.Don''t allow the user to pay the amount before one week
and next week.If the Amount is paid in the current week after that the
next
entry is in the next week only.

Can any one help me to generate this logic..

[edit]SHOUTING removed, spurious code block removed - OriginalGriff[/edit]

解决方案

Get week from some date

Debug.Print(DateDiff(DateInterval.Weekday, DateValue(Now), datevalue(


anydate


)))


这篇关于VB.NET中的周计算的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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