The ban will go into effect immediately, as according to the directive from the Chinese commerce ministry. They cite "safeguarding national security and interests" as for the reasoning to implement the ban. And this continues with the retaliatory measure that China has been pursuing against the US since last year.
No doubt that this is in response to this move here: Latest US trade restrictions reportedly set to hit China's semiconductor industry