title: Check if a date belongs to a given month and year in python
body: <p>Is there a built-in python function where I would check a given date if it belongs to a month and year. For example I would like to check if a date 05/15/2019 belongs to  05/2019 month and year. I've created a function where I split the date then match its month and year to 05/2019. I would just like to know if there is a built-in function</p>