Parse dates before generating statements in generate statements management command