I have the following string:
2016-06-08 - 10:08
I need to convert this string to the other format:
08-06-2016 10:08
How do I proceed?
function dateFormat(date) {
inputFormat = new java.text.SimpleDateFormat('dd-MM-yyyy');
inputText = "2012-11-17";
date = inputFormat.parse(inputText);
outputText = inputFormat.format(date);
alert(outputText);
};