Class Toggle by date

I’m trying to set the background on my text based on a date.

I have a text input on a page where I can select the date.

I want to use bg-danger to highlight fields in my table if they have the selected date. but it’s not working. Is there a date format issue? Must I match the formats somehow?

Community Page
Last updated: