Use the attr parameter to pass format options through to date widget when not using a separate button to activate the datepicker widget