Fixed bug where user specified date format was ignored

Added date hierarchy creation example to Example18 that highlighted the suspected bug in DataType