This solution was working for me. just have a try.
var date = DateTime.Today();
ReportDocument report = new ReportDocument();
CrystalReportViewer crystalReportViewer1 = new CrystalReportViewer();
report.SetParameterValue("@EndDate", date);
crystalReportViewer1.RefreshReport();