How to define a formatter function in ng2-date-picker?

ng2-date-picker configuration takes format as one of the inputs. This is useful, however is there an option to provide a function to format.

I could see in the documentation dayBtnFormatter, monthFormatter, monthBtnFormatter, yearFormatter which accepts function to format various sections. However, couldn’t find a way to provide formatter function to format the value displayed.

Source: Angular Questions