Avatar of Miguel Oz
Miguel Oz
Flag for Australia asked on

SSRS - Set a parameter default date value to today at 6AM

Dear Experts:
I would like to set a date parameter default date value to today at 6AM.
e.g. 7/01/2018 6:00:00 AM
In other words I need the expression that can replace this expression that is not working:
=CDate(Format(Now(), "dd/MM/yyyy") + " 6 AM")


Note: I use SSRS 2016 and. I tried to run this report through the web service and fails with the invalid date error.
If I use expression =Today() then it works without any issue.
C#Microsoft SQL ServerSSRS

Avatar of undefined
Last Comment
Miguel Oz

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Nitin Sontakke

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Miguel Oz

ASKER
Thank you it works OK, still the parameter format that comes out of the web service is US format but I can sort that issue out on the client side.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck