Wrong date format in custom form

Wrong date format in custom form

I have created a custom form with a date field in it. In my company settings the date format is set to dd-mm-yyyy. However the date field in my custom form is with format mm-dd-yyyy. :(