I'm trying to get my ssrs report to display the differences between two dates

  • = iif(DateDiff("d",fields!STRTDATE.Value,today()) < 60, DateDiff("d",fields!STRTDATE.Value, today())

    I'm trying to get my ssrs report to display the differences between two if less than 60 days in the first colum

  • The part you missed is the false part of when the date diff is not <60

    = iif(DateDiff("d",fields!STRTDATE.Value,today()) < 60, DateDiff("d",fields!STRTDATE.Value, today()), "Date not less than 60")

    gsc_dba

  • It doesnt like the <

    = iif(DateDiff("d",fields!STRTDATE.Value,today()) < 60, DateDiff("d",fields!STRTDATE.Value, today()), "Date not less than 60")

  • lcarrethers (6/20/2012)


    It doesnt like the <

    = iif(DateDiff("d",fields!STRTDATE.Value,today()) < 60, DateDiff("d",fields!STRTDATE.Value, today()), "Date not less than 60")

    Instead of using 60 (integer) try using DateAdd(DateInterval.Day,-60,Now())

    I also got an error because the int cannot be compared to date

    gsc_dba

  • It didn't like the <

    I replaced it with < and it worked.

  • Nevermind, it came over as <

    as &lt not <

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply