How can I change the display format from friendly to standard?
I want to change this on all lists in the solution
$sites = Get-SPSite "http://company.com/sites/testdelete/"
$created = "Created"
foreach ($spsite in $sites)
{
$sitelists = foreach ($web in $spsite.AllWebs)
{
foreach($list in $web.lists)
{
foreach($list in $web.lists)
{
$column = $list.Fields[$created]
$column.FriendlyDisplayFormat = "Disabled"
$column.Update()
}
}
}
#$sitelists |select Title
}
$column.FriendlyDisplayFormat = 1
. This is enumeration as we can see here: SPDateTimeFieldFriendlyFormatType enumeration