According to @metropolis' comment, it seems to have been resolved by using the datetime.date
method.
datetime.date()
Returns the same year, month, and day date object.
https://docs.python.org/ja/3/library/datetime.html#datetime.datetime.date
© 2024 OneMinuteCode. All rights reserved.