gettextheader: Factorize date formatting into formatGettextDate()
Summary: Add unit test for formatGettextDate()
Test Plan: make && ctest
Reviewers: aacid, sdepiets
Subscribers: Localization
Differential Revision: https://phabricator.kde.org/D21842