Error in Date format

Hi All,
I have created the page, and changing the format of filter date
01.12.2015 into 2015.12.01 by getdate frappe function But it changes to
01.12.2015 into 2015.01.12. this error occurs.