I need to replace occurrence of very \
with -
in a string. I am using the following code but it replace only for once occruence:
var start = '1/1/12';
startNew = start.replace('/', "-");
Result i am getting is: 1-1/12
Result i want is: 1-1-12