SSRS Date Time Experession

  • Hello Everyone,

    I am using SSRS for some reports and one of my report which get report based on parameters has start date and end date as parameter. not , I have wirtten an expression , with which if user put today date, the expression would add one more day to it.

    Now my issue is, if I want to subtract just one sec from this day and track the details before that day. what should I do.

    This is my present expression:

    = Format(DateAdd("d", 1, Parameters!rsThruDate.Value), "dd-MMM-yyyy")

    any help would be greatly appreciated.

  • try this

    = Format(DateAdd("s", -1, Parameters!rsThruDate.Value), "dd-MMM-yyyy")

    Kind Regards, Will

  • or did you mean this

    = Format(DateAdd("s",-1,DateAdd("d", 1, Parameters!rsThruDate.Value)), "dd-MMM-yyyy")

    Kind Regards, Will

Viewing 3 posts - 1 through 2 (of 2 total)

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