wcf - IIS default datetime format -
we have wcf web service returns xml containing datetime value string. value first read out database , appended xml string using .tostring().
we have number of web servers running particular 1 converting datetime value 24 hour value, need has 12 hour value can't figure out how change iis default date format. have tried changing regional settings , have @ culture , ui culture values of web service both set "invariant language (invariant country)".
i think might require registry change. know how change datetime format of web service?
we cannot change code @ stage choice update server itself.
its running on windows server 2008.
thank you
nevermind people i've figured out. change datetime regional settings of iis website/webs ervice here do:
first go iis , click on website/web service want configure. on right hand side open .net globalization , change culture , ui culture other 1 want.
now in control panel go region , language screen , change datetime format want be. on administration tab of region , language screen click "copy settings" button , tick box "welcome screen , system accounts". click ok on both screens exit region , language.
now go iis , change culture , ui culture before change it. website/webservice should serving correct datetime format.
i think key point here copying region , language settings system users. changing iis culture settings makes iis pickup new settings. might away not changing culture , restarting webserver or machine after making changes in region , language screen haven't tried this.
Comments
Post a Comment