While this question is specifically related to the TV guide function, it isn't confined to that, thus I'm placing the thread here...
Is there a search string I can use to create a smartlist (or Theater View Scheme) that will find me all TV shows for *the present date* that start between x and y times?
I say *present date* because I want it to be dynamic i.e each day I want it to show the prgrams between 6 - 10pm for that day.
I have the date field populated and have created a Start Time field, but how to get it to find *the present day's* shows?
Then also, how to extrapolate that into show data for next 7 days, so between *present date* and *present date + 6 days*
Any help would be great.
Solution:The rule I used to find all of today's programs is:
[=isequal([Date Recorded],formatdate(now(),d//MM//yyyy),8)]=1
courtesy in part to the thread at
http://yabb.jriver.com/interact/index.php?topic=56487.0And to find those starting between time A and time B is:
[=IsRange(math(math(mid([date recorded],11,2)*3600)+math(right([date recorded],2)*60)),64800-77400)]=1
where the time range (18:00 - 21:30) is reflected in seconds i.e 18*3600=64800.
Note: Your system needs to display time in HH:mm format for this to work.
Thanks to @Lasse_Lus for this part.