New topic: How can I tell if a date falls in between a range of dates?
<http://forums.realsoftware.com/viewtopic.php?t=29409> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message shaggymac Post subject: How can I tell if a date falls in between a range of dates?Posted: Wed Aug 05, 2009 1:14 pm Joined: Fri Feb 29, 2008 5:25 pm Posts: 324 I have two dates Startdate = 4/27/09 enddate = 5/2/09 I have a CSV file that has 4 fields and i am only interested in the lines that are inbetween two dates. Code: If current.TotalSeconds >= startOfWorkWeek.TotalSeconds And current.TotalSeconds <= endOfWorkWeek.TotalSeconds Then Return True Else Return False End If This always returns false (even of the date is in between my range) Please help! Thanks _________________ http://www.oneoranephone.com Free calls to USA & Canada Free calls to Europe or Asia Free calls to Puerto Rico Plans starting at $14.95 http://www.mupromo.com/?ref=4850 Today's MacUpdate Promo, 40% off Top timhare Post subject: Re: How can I tell if a date falls in between a range of dates?Posted: Wed Aug 05, 2009 1:19 pm Joined: Fri Jan 06, 2006 3:21 pm Posts: 5995 Location: Portland, OR USA That should work, assuming that current, startOfWorkWeek, and endOfWorkWeek are what you expect them to be. Put in a breakpoint and check your assumptions. Tim Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
