I am currently making an auction program in Java, I am trying to work out deadlines, however my date keeps coming out as (7/04/2013 11:22), is there a way to use String.format
Simply use the SimpleDateFormat
import java.text.SimpleDateFormat; Calendar timeOne = Server.getDateTime(itemArray.get(1).time) SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy HH:mm") System.out.println(sdf.format(timeOne.getTime()))