title: Access zoo or xts index
body: <p>I am using zoo objects, buy my question also applies to xts objects. It looks to me like it is a one column vector with an index. In my case the index is the vector of dates and the one column vector my data. All is good except that I would like to access the dates (from the index).</p>
  
  <p>For example I have the following result:</p>
  
  <pre><code>ObjZoo &lt;- structure(c(10, 20), .Dim = c(2L, 1L), index = c(14788, 14789),
                      class = "zoo", .Dimnames = list(NULL, "Data"))
  unclass(ObjZoo)
  #      Data
  # [1,]   10
  # [2,]   20
  # attr(,"index")
  # [1] 14788 14789
  </code></pre>
  
  <p>I want to get <code>14789</code> in a variable or a vector, but I'm not sure how to access it.</p>