Kindly check with given regex hopefully it should work
dateString = dateString.replace(/\b0(\d)\b/g, '$1');