title: Convert Date variable into particular format in Powershell
body: <p>Get-Date -format yyyy/M/d works in PS1 but it doesnt work with variable date like, 
  $date -format yyyy/M/d. 
  It prompts an error - Unexpected token in expression or statement. </p>
  
  <p>How can I make the $date variable work. </p>
  
  <p>Thanks, 
  A curious mind! </p>