I have the following code below. I'm trying to search for a text inside a string from a date field and populate it with the associated month with ArcGIS Arcade. So far I just keep getting the default return statement of 'none'. Any thoughts? Does it have something to do with the Find function?
var date = Text($feature.DATE);
if (Find('2023/01/01', date, 0) > -1) {
return 'January';
} else {
return 'none';
}