I have a list of dates in python for example
dates = ["01/03/2010", "02/11/2010", "05/12/2010", "21/12/2010"]
in dd/mm/yyyy
format. Then I have a cut-off date "30/11/2010"
, so I want all dates up to "30/11/2010"
from dates, so the output would be
["01/03/2010", "02/11/2010"]
I have tried searching for similar questions but they all seem to be iterating through ranges of dates. Is there any way this can be done in Python?