Advertisement
Yevrag35

Custom DateTime Format

Oct 19th, 2019
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.88 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <Configuration>
  3.     <ViewDefinitions>
  4.         <View>
  5.             <Name>Custom DateTime View</Name>
  6.             <ViewSelectedBy>
  7.                 <TypeName>System.DateTime</TypeName>
  8.             </ViewSelectedBy>
  9.             <ListControl>
  10.                 <ListEntries>
  11.                     <ListEntry>
  12.                         <ListItems>
  13.                             <ListItem>
  14.                                 <Label>LocalTime</Label>
  15.                                 <ScriptBlock>$_.LocalTime</ScriptBlock>
  16.                                 <ItemSelectionCondition>
  17.                                     <ScriptBlock>$_.LocalTime -ne $null</ScriptBlock>
  18.                                 </ItemSelectionCondition>
  19.                             </ListItem>
  20.                             <ListItem>
  21.                                 <Label>Current</Label>
  22.                                 <ScriptBlock>$_</ScriptBlock>
  23.                                 <ItemSelectionCondition>
  24.                                     <ScriptBlock>$_.LocalTime -eq $null</ScriptBlock>
  25.                                 </ItemSelectionCondition>
  26.                             </ListItem>
  27.                         </ListItems>
  28.                     </ListEntry>
  29.                 </ListEntries>
  30.             </ListControl>
  31.         </View>
  32.     </ViewDefinitions>
  33. </Configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement