I got the following string:
"14-10-2013 03:04"
And I would like a function which replaces the part where the '10' is now, with the part where the '14' is now. How can I do so? I know there is something like split but I'm not too experienced with it.
So far:
var string = '14-10-2013 03:04';
var firstPart = string.split("-", 1);
alert(firstPart);
But I don't know how to get the second part (the '10') in a variable.