add dateformat of datetime picker. Rails can't accept the default date format.