title: How to print a date range as a string?
body: <p>I want to print a date range as string using R.
  Following is what I did</p>
  
  <pre><code>&gt; startDate &lt;- as.Date("2005-02-02")
  &gt; endDate &lt;- as.Date("2005-02-07")
  &gt; dates &lt;- startDate:endDate
  &gt; dates
  [1] 12816 12817 12818 12819 12820 12821
  </code></pre>
  
  <p>Here instead of showing the date as a string as done when we print startDate</p>
  
  <pre><code>&gt; startDate
  [1] "2005-02-02"
  </code></pre>
  
  <p>It it showing the epochdays.</p>
  
  <p>What I actually want was the string representation of the dates and not epoch days.
  I even tried the following without any luck</p>
  
  <pre><code>&gt; as.character(dates)
  [1] "12816" "12817" "12818" "12819" "12820" "12821"
  </code></pre>
  
  <p>How can I print the date string rather than epoch days?</p>