fix(datepicker): ensure format string is initialized

Delayed initialization causes errors with datepicker on a hidden tab-pane.