Gud day..,

I need help. I'm doing a program and I want it to have a search button to search within a range of date. From and To. I dont know how to code this.. thank you,..

Try this,it should work...

Dim start As Date = DatetimepickerStart.date
   Dim end As Date = DatetimepickerEnd.date
   Dim present As Date = DatetimepickerPresent.date
   If present > start And present < end Then
   MsgBox("Correct date")
   Else
   MsgBox("Incorrect Date")
   End If
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.