Modify new.js so that datetimepicker passes the correct dateformat dd-mm-yy