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("EEE @HH:mm").format(start) + " - " + duration + " min"; }//from ww w . j ava 2 s.co m }