mi: declare/move MI_DATE_BUF_LEN into the mi headers
(cherry picked from commit 8925239f47bec295e1b0188c5b8c0deb2903a4ca)