I have the following routine to replace the Time portion of a datetime string displayed in the options of a drop down list called \"SalesWeek\". The Replace method is not replac
You aren't assigning the result.
item = item.replace(regex,'');