Updates from: 01/21/2022 02:48:03
Service Microsoft Docs article Related commit history on GitHub Change details
developer Creating A List View https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/docs-conceptual/developer/format/creating-a-list-view.md
Formatting strings can be added to a view to further define how the data is disp
```xml <ListItem> <PropertyName>StartTime</PropertyName>
- <FormatString>{0:MMM} (0:DD) (0:HH):(0:MM)</FormatString>
+ <FormatString>{0:MMM} {0:DD} {0:HH}:{0:MM}</FormatString>
</ListItem> ```
In the following example, the `ToString` method is called to format the value of
```xml <ListItem> <ScriptBlock>
- [String]::Format("(0,10) (1,8)", .LastWriteTime.ToString("d"),
- $_.LastWriteTime.Totring("t"))
+ [String]::Format("{0,-10} {1,-8}", $_.LastWriteTime.ToString("d"), $_.LastWriteTime.ToString("t"))
</ScriptBlock> </ListItem> ```
developer Creating A Table View https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/docs-conceptual/developer/format/creating-a-table-view.md
Formatting strings can be added to a view to further define how the data is disp
```xml <TableColumnItem> <PropertyName>StartTime</PropertyName>
- <FormatString>{0:MMM} (0:DD) (0:HH):(0:MM)</FormatString>
+ <FormatString>{0:MMM} {0:DD} {0:HH}:{0:MM}</FormatString>
</TableColumnItem> ```
In the following example, the `ToString` method is called to format the value of
```xml <ListItem> <ScriptBlock>
- [String]::Format("(0,10) (1,8)", .LastWriteTime.ToString("d"),
- $_.LastWriteTime.Totring("t"))
+ [String]::Format("{0,-10} {1,-8}", $_.LastWriteTime.ToString("d"), $_.LastWriteTime.ToString("t"))
</ScriptBlock> </ListItem> ```
developer Creating A Wide View https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/docs-conceptual/developer/format/creating-a-wide-view.md
Formatting strings can be added to a wide view to further define how the data is
```xml <WideItem> <PropertyName>StartTime</PropertyName>
- <FormatString>{0:MMM} (0:DD) (0:HH):(0:MM)</FormatString>
+ <FormatString>{0:MMM} {0:DD} {0:HH}:{0:MM}</FormatString>
</WideItem> ```
In the following example, the `ToString` method is called to format the value of
```xml <WideItem> <ScriptBlock>
- [String}::Format("(0,10) (1,8)", .LastWriteTime.ToString("d"),
- $_.LastWriteTime.Totring("t"))
+ [String]::Format("{0,-10} {1,-8}", $_.LastWriteTime.ToString("d"), $_.LastWriteTime.ToString("t"))
</ScriptBlock> </WideItem> ```