Improve use of dates in table

* Make proper use of calendar
* More accurate date ruler
* Start/end date can be changed now