public static String formatDate(Instant time) {

		Assert.notNull(time, "Missing time!");
		return DATE_FORMAT.format(time);
	}
public static String formatDate(Instant time) {

		Assert.notNull(time, "Missing time!");
		return DATE_FORMAT.format(time);
	}
public static String formatDate ( Instant time ) { Assert . notNull ( time , "Missing time!" ) ; return DATE_FORMAT . format ( time ) ; }
Formats time to date only

@param time to be formatted (UTC) in milliseconds
@return date formatted yyyy-MM-dd
Formats time to date only