Added calendar date handling to improve the utility of this demo app.