Sunday, March 25, 2012
Date Picker control returning date is US format
I'm a newbie to reporting services and I am just learning and testing at the
moment. I am based in the UK.
I have set up a report with two parameters that are both dates.
When running the report in the IDE or http://ServerName/Reports dates picked
from the calendar control return as DD/MM/YYYY
When I run the report through http://Servername/ReportServer the date is
returned to the web page as MM/DD/YYYY.
I have found that if I choose a date like 02 Feb so I can run the report and
then use the date picker again without exiting, it then returns DD/MM/YYYY.
My client PC is set to UK English and I have checked my IE settings (I have
tried firefox too). The server is all set to UK english. I have checked the
settings on IIS as well.
I have tried forcing the culture to "en-GB" in web.config.
It's interesting to note that the report services log files (eg
ReportServerWebApp__03_16_2007_14_29_30.log) contains en-US.
<Header>
<Product>Microsoft SQL Server Reporting Services Version
9.00.3152.00</Product>
<Locale>en-US</Locale>
<TimeZone>GMT Standard Time</TimeZone>
<Path>C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting
Services\LogFiles\ReportServerWebApp__03_16_2007_14_29_30.log</Path>
<SystemName>myservername</SystemName>
<OSName>Microsoft Windows NT 5.2.3790 Service Pack 2</OSName>
<OSVersion>5.2.3790.131072</OSVersion>
</Header>On 16 mar, 16:05, "Paul Cahill" <a...@.anon.com> wrote:
> SQL2005 SP2 + hotfix build 3152
> I'm a newbie to reporting services and I am just learning and testing at the
> moment. I am based in the UK.
> I have set up a report with two parameters that are both dates.
> When running the report in the IDE orhttp://ServerName/Reportsdates picked
> from the calendar control return as DD/MM/YYYY
> When I run the report throughhttp://Servername/ReportServerthe date is
> returned to the web page as MM/DD/YYYY.
> I have found that if I choose a date like 02 Feb so I can run the report and
> then use thedate pickeragain without exiting, it then returns DD/MM/YYYY.
> My client PC is set to UK English and I have checked my IE settings (I have
> tried firefox too). The server is all set to UK english. I have checked the
> settings on IIS as well.
> I have tried forcing the culture to "en-GB" in web.config.
> It's interesting to note that the report services log files (eg
> ReportServerWebApp__03_16_2007_14_29_30.log) contains en-US.
> <Header>
> <Product>MicrosoftSQLServer Reporting Services Version
> 9.00.3152.00</Product>
> <Locale>en-US</Locale>
> <TimeZone>GMT Standard Time</TimeZone>
> <Path>C:\Program Files\MicrosoftSQLServer\MSSQL.3\Reporting
> Services\LogFiles\ReportServerWebApp__03_16_2007_14_29_30.log</Path>
> <SystemName>myservername</SystemName>
> <OSName>Microsoft Windows NT 5.2.3790 Service Pack 2</OSName>
> <OSVersion>5.2.3790.131072</OSVersion>
> </Header>
Exactly the same problem here, it is caused by SP2 and his new date-
picker control. Anyone knows if MS is working to correct this?. Thanks.
Wednesday, March 7, 2012
Date format in ms sql
I use datepicker control to select date, but when I try to insert it into database (DatePicker1.Value) it throws error.
What should I set up in order to be able to insert date into ms sql 2000 database, without having to change Regional settings?
This is last question for tonight![]()
Thanks,
Milan
If you use parameters, rather than trying to build up the SQL INSERT into a string.
http://aspnet101.com/aspnet101/tutorials.aspx?id=1
|||Very simple. nice and clean solution.You just make me close bunch of open browser tabs and windows with Google's results![]()
Thanks a lot.
Friday, February 17, 2012
Date contol issue.
Hello,
In the date control parameter while user open the calendar he can change the year at the top of the control by click in the year and he get up and down arrow.
When user go to old year ther is a problem with the calendar.
Any idea ?
Idanle,
Can you specify exactly what the problem is that the user encounters when selecting older dates?
Ham
|||The user not select a date.
While you open the date control, at the top click on the year (e.g 2006) when you click on the year you can down or up to get 2005 or 2007.
If you start to down to 2005,2004... you see that the calander miss dates
|||Humm,
When I click the on the Year control in the datatime picker, I can move through the years and then if I need a different month I click on the month and a picklist appears that allows me to pick another month of that year.
Does this problem appear on all of your reports that uses the datetime control or just on single report?
Ham
|||I can't pick but if I go to an olde year somthing happen to the calendar