Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is Date Between Two Dates

 
Steve Dyke
Ranch Hand
Posts: 1616
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have searched the web and have not found a good way to check and see if a given date is equal to or between two dates. Please help.
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you look at the Date class ?
 
Bill Shirley
Ranch Hand
Posts: 457
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll have to write it.
I'd suggest Calendar over Date, but either will do.

If the time of day for your Date/Calendar is set to zero, then it is of course a trivial exercise.

Try it, let us know how it goes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic