How long will the dark events in xcom 2 stay active?

The dark event should say itself. (Though obviously, some, such as the Resistance Mole event, are instantaneous, and have no duration at all).

Generally, for the ones with duration, they last a month.