Here you can find the source of datesToString(final Date start, final int duration)
public static String datesToString(final Date start, final int duration)
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String datesToString(final Date start, final int duration) { return new SimpleDateFormat("EEEEEEEE dd @HH:mm").format(start) + " - " + duration + " min"; }/*www .j a v a2 s .c o m*/ }