This works very well:
out.println(DurationFormatUtils.formatPeriod(
new Date().getTime(),
match.getStartingTime().getTime(),
"d H"));
But now I would like to have some nicer format
out.println(DurationFormatUtils.formatPeriod(
new Date().getTime(),
match.getStartingTime().getTime(),
"d days H hours left"));
But as aspected this gives output as
45 a01101 4 hour1101 left
Is there a simple solution for this problem?