Changing the input date format

Is there a way to change the input date format to be month/day/year? I’m trying to print it as a string and then compare that to a value in my df…

Hi @Vivika_Martini -

You can use strftime from the Python datetime library to re-format the string any way you choose:

https://docs.python.org/3/library/datetime.html#datetime.date.strftime

Best,
Randy