I know this is a simple task but I can't seem to find the solution.
I've got a date in the format: 20/02/2013 I just wanna replace the / by - I've got that so far but it only replaces the first slash... Don't know why not the second:
date = 20/02/2013;
date.replace('/', '-');
Thanks for any help.