title: C# Get Date From Computer
body: <p>I'm trying to get the date into a string in C#. I want the format of:</p>
  
  <blockquote>
    <p>2011.02.14</p>
  </blockquote>
  
  <p>Which is, YYYY.MM.DD</p>
  
  <p>Can someone please let me know the command for this? And also is there a way to do like Date(-1)?</p>
  
  <p>Thanks.</p>