You just need to reformat the string, so in browsers that support ES5 Array methods:
'2012-02-12'.split('-').reverse().map(function(v){return Number(v)}).join('.') // 12.2.2012
However, you might want a function that is a little more efficient and works in even very old environments:
function reformatDate(s) {
var b = s.split('-');
return b[2] + '.' + Number(b[1]) + '.' + Number(b[0]);
}
console.log(reformatDate('2012-02-12')); // 12.2.2012
If you don't care about converting '02' to '2', then:
'2012-02-12'.split('-').reverse().join('.'); // 12.02.2012
will do the job. However, that format will be understood by most people as 12 February but some as 2 December whereas the first format is unambiguously the former.