How to change the format of a date type field in a class definition?


I have a date field in a class definition.
By default, it is in the format of “YYYY-MM-DD”.
I want to display this as “DD-MM-YYYY”.

How can I change its format on the field as well as on the grid?

I know that I can change the format in grid by using the hook “pimcore.admin.dataobject.get.preSendData”.
Is there any other way for the same?
I mean that if I could change the format on the date field then I don’t need to use the hook. It should be done automatically.