KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a series of ranges with start dates and end dates. I want to check to see if a date is within that range. Date.before() and Date.after() seem to be a little awkward to use. What I really need is something like this pseudocode: boolean isWithinRange(Date testDate) { return testDate >= startDate && testDate <= endDate; } Not sure if it's relevant, but the dates I'm pulling from the database have timestamps.
Tags (comma-separated)
Save Edits
Cancel