I have String variable movieDuration
, which contains value in minutes. Need to convert that to HH:mm format. How should I do it?
Tried to do it as:
SimpleDateFormat formatter = new SimpleDateFormat("dd-MM-yyyy HH:mm:ss");
movieDurationFormatted = formatter.format(movieDuration);
But looks like value in minutes is not ok for formatter.