문제

In Site Settings > Regional Settings it is possible to define a working week:

Sharepoint work week

Is it possible to change the first day of the week with server-side code?

도움이 되었습니까?

해결책

You can access working weeks information by modifying regional settings on an SPWeb By Powershell :

$web = Get-SPWeb "http://yourweb" 
$web.RegionalSettings.WorkDayStartHour = (8 * 60) #8h converted in minutes
$web.RegionalSettings.WorkDayEndHour= (20 * 60) #convert in minutes

you can access all properties of the SPWeb RegionalSettings $web.RegionalSettings

More info http://www.sharepointdiary.com/2014/11/change-regional-settings-time-zone-locale-in-sharepoint-2013-using-powershell.html

Same thing with C# code ;)

Regards,

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top