Parse the date through the parseDateFunction before seeting the
mainButtonStr, so that the parsing is honoured.