Form and index formatting and datepicker