Click here to Skip to main content
16,018,234 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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)
Posted

1 solution

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

If CheckDate >= StartDate AndAlso CheckDate <= EndDate Then

End If
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900