title: GetType used in PowerShell, difference between variables
body: <p>What is the difference between variables <code>$a</code> and <code>$b</code>?</p>
  
  <pre><code>$a = (Get-Date).DayOfWeek
  $b = Get-Date | Select-Object DayOfWeek
  </code></pre>
  
  <p>I tried to check</p>
  
  <pre><code>$a.GetType
  $b.GetType
  
  MemberType          : Method
  OverloadDefinitions : {type GetType()}
  TypeNameOfValue     : System.Management.Automation.PSMethod
  Value               : type GetType()
  Name                : GetType
  IsInstance          : True
  
  MemberType          : Method
  OverloadDefinitions : {type GetType()}
  TypeNameOfValue     : System.Management.Automation.PSMethod
  Value               : type GetType()
  Name                : GetType
  IsInstance          : True
  </code></pre>
  
  <p>But there seems to be no difference although the output of these variables looks different.</p>