Hi Boyan,
To use DateFormat the variable of the input needs to be text. Than on the action that saves the data on the database you need to convert from text to date. For that you can use the extension shared by João Rosado in this post.
Btw this section is for when you are using this specific component which is not the case. If you post in the forum section is more probable to get an answer.
Regards,
Marcelo