bimestre static method

int bimestre(
  1. DateTime data
)

Implementation

static int bimestre(DateTime data) => ((data.month - 1) / 2 + 1).toInt();