Sushant Torankar

Sushant Torankar

  • 1.1k
  • 264
  • 29.2k

Between date in C#

Jul 25 2023 7:03 PM

Hi

I have FROM DATE and TO DATE textbox on page. I want to validate textbox where User is allow to enter only 7 days date range in both textboxes. For Ex. If date in FROM DATE textbox is 10/07/2023, then TO DATE must be 17/07/2023 and If TO DATE changes then accordingly FROM DATE should be -7 days back.

User should not allow to choose more than 7 days in both textbox, and should see data between only 7 days

Thanks


Answers (7)