Hi Gurus,
Environment: Crystal Reports 2008
Business Objects XI 3.1
I have 2 date parameters (?StartDate and ?EndDate) that take user input for Beginning and End dates. I want to change the date that the user inputs so that the date part remains the same but gets time stamp of 11:59:59 PM. I m trying to get this done in Record Selection Formula. I m able to change the Start Date by adding one day and then subtracting One Second from it, but cannot get the End Date to change. For the End Date, I m doing the same thing i.e. add one day to ?EndDate parameter using formula dateadd("d",1,{?EndDate}) and then using that formula in Record Selection Formula to subtract One Second as: dateadd("s",-1,@formula)
but somehow i cant get it to work.
Please suggest a solution.
Thanks.
Environment: Crystal Reports 2008
Business Objects XI 3.1
I have 2 date parameters (?StartDate and ?EndDate) that take user input for Beginning and End dates. I want to change the date that the user inputs so that the date part remains the same but gets time stamp of 11:59:59 PM. I m trying to get this done in Record Selection Formula. I m able to change the Start Date by adding one day and then subtracting One Second from it, but cannot get the End Date to change. For the End Date, I m doing the same thing i.e. add one day to ?EndDate parameter using formula dateadd("d",1,{?EndDate}) and then using that formula in Record Selection Formula to subtract One Second as: dateadd("s",-1,@formula)
but somehow i cant get it to work.
Please suggest a solution.
Thanks.