SELECT ... WHERE dt >= '2017-02-01'
             AND dt  < '2017-02-01' + INTERVAL 1 MONTH
Sure, this could be done with BETWEEN and inclusion of 23:59:59. But, the pattern has this benefits:
BETWEEN does), nor type ‘23:59:59’ to avoid it.DATE, TIMESTAMP, DATETIME, and even the microsecond-included DATETIME(6).BETWEEN).