How can I get date format from SSRS report from web service interface?

I get report parameters in C # code from webservice as follows:

ReportingService2005 ReportingService = ConnectToSSRS();
ReportParameter[] ReportParams = ReportingService.GetReportParameters(reportSelector.SelectedValue, HistoryID, ForRendering, emptyParams, null);

DateTime options currently always look like mm / dd / yyyy. Where is the date format determined? Isn't it as tough as that? Is there a way to get DateFormat from code?

thanks

+3
source share
2 answers

What you see is a string representation of the default format of a DateTime object (depending on your locale ... maybe), so yes, in a way, it is encoded this way.

DateTime, , , , .

dt.ToString("MM/dd/yyyy hh:mm:sszzz")

, . this.

0

ISO 8601, . 1999-06-01. .

0

Source: https://habr.com/ru/post/1723356/


All Articles