Search code examples
reporting-servicesrdlcformatdatetime

Change date format in Parameter (RDLC Report)


How can I change the date format when time and date is in one parameter?

Parameters!DateTimeFrom.Value  

I want to change it in MM-dd-yyyy.

Please help.


Solution

  • You can try this,

    =Format(CDate(Parameters!DateTimeFrom.Value),"MM-dd-yyyy")
    

    OR if you want to show time also- MM-dd-yyyy hh:mm:ss , then you should try below,

    =Format(CDate(Parameters!DateTimeFrom.Value),"MM-dd-yyyy hh:mm:ss")