November 21, 2008 at 10:11 am
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.
November 21, 2008 at 12:53 pm
try this
= Format(DateAdd("s", -1, Parameters!rsThruDate.Value), "dd-MMM-yyyy")
Kind Regards, Will
November 21, 2008 at 12:55 pm
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