This is a migrated thread and some comments may be shown as answers.

Hour and Minute in Date type report parameter

3 Answers 314 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
KocSistem
Top achievements
Rank 1
KocSistem asked on 26 Jun 2012, 12:07 PM
Hi,
Is that possible to input hour and minute together with the date picker as report parameter when parameter type is datetime?
thanks :) 

3 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 26 Jun 2012, 02:30 PM
Hello,

By default, the DateTime report parameter editor would be a DatePicker. The built-in report parameters' purpose is to provide basic UI that is available out of the box and that is enough for most scenarios. For other cases, when you require customization, you can hide all report parameters (Visible=false), create a custom parameter area and wire it up to the Report API e.g. use RadDateTimePicker for ASP.NET AJAX control and pass the input via the report API:

Telerik.Reporting.ReportSource report = (Telerik.Reporting.ReportSource)this.ReportViewer1.ReportSource;
report.Parameters.Add("MyParameterName", RadDateTimePicker1.SelectedDate);

Regards,
Steve
the Telerik team

FREE WEBINAR ON THE NEW REPORT DESIGNER! Join us on Friday, June 29 at 10:00 AM PST for a comprehensive demo of the official version of the standalone Report Designer and find out how easy it is to empower your users with creating, editing and sharing ad-hoc reports. You may even win a free Telerik Ultimate Collection license! Register today >>

0
Sherri
Top achievements
Rank 1
answered on 02 Apr 2020, 07:36 PM
When a date is picked by the date picker, what format is it in? MM/DD/YYYY or something else?
0
Todor
Telerik team
answered on 07 Apr 2020, 02:44 PM

Hi Sherri,

The date is in the format specified by the current culture of the browser.

Regards,
Todor
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
General Discussions
Asked by
KocSistem
Top achievements
Rank 1
Answers by
Steve
Telerik team
Sherri
Top achievements
Rank 1
Todor
Telerik team
Share this question
or