To get the date column just add
addcolumn(datenum(), ... ) to your code (or first convert to any
date format that you like).
As for only getting the last bar, I don't know
what is going on because I get all bars just as you indicated that you
want. Must be something to do with your
settings.
Here is a screen shot of what I get with
datenum() included showing decreasing dates from
6/8/07: