Added date hierarchy creation example to Example18
Fixed bug where user specified date format was ignored