date stuff works now

The only pending item is to figure out how to chart last 12 months from
selected date. Can deal with that later.