I have this age template that I copied which uses the YYYY-MM-DD format:
<includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly><noinclude>[[Category:Data templates]]</noinclude>
However, I recently got the idea to convert it to the DD-MM-YYYY format since that is my preferred format, as I am a New Zealander. Would such a conversion be possible? If so, how would I write the template code?