Comparing Dates in If Statement -
i trying compare dates in expression. if closed_date matches today's date (i using today()), output 1 in box, otherwise output 0. far have doesn't seem work:
=iif(fields!closed_date = mid(today(),1,9), "1", "0") the reason using mid month, day, , year. don't want time included. there way can compare dates using or method?
today() returns today's date @ midnight, compare date today you'll need strip time closed_date instead. i'd recommend datevalue function, since returns date information time set midnight makes easy comparison:
=iif(datevalue(fields!closed_date.value) = today(), "1", "0")
Comments
Post a Comment