如何检查VB.Net中的两个日期字段 [英] How to check the two date fields in VB.Net

查看:58
本文介绍了如何检查VB.Net中的两个日期字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何检查VB.Net中的两个日期字段(例如,我从2013年10月21日至2013年10月30日预订了房间,我想查看25/10预订的那个房间/ 2013或不)

How to check the two date fields in VB.Net (for eg. I had booked a room from 21/10/2013 to 30/10/2013 and i want to check the that room which is booked on 25/10/2013 or not)

推荐答案

Dim StartDate As DateTime
Dim EndDate As DateTime
Dim CheckDate As DateTime

If CheckDate >= StartDate AndAlso CheckDate <= EndDate Then

End If


这篇关于如何检查VB.Net中的两个日期字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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