[BZ-1013545] raise a compilation error when date-effective or date-expires are in the wrong format
(cherry picked from commit 955939aed61879fc51dd0f0443099310866de4dd)