tried both without goodluck
Sorry to say but, it is difficult to give sample link as site building is under process, but can tell you that i have checked cut-off date as well and i have taken its value before end date.
Thanks Alot :- @marten_r_k
for your sourceful Post. That one line code made my day.