Code example for SimpleDateFormat

Methods: format

0
		} 
		return date;
	} 
	 
	public static String GetPostDateLocationString(Date date, String locality, String adminArea){
		Format formatter = new SimpleDateFormat("hh:mm a");
		return formatter.format(date) + " @" + locality + ", " + adminArea;
	} 
	 
	public static String GetAbsoluteUrl(String url){
		if(url.startsWith("/")){
			url = (url.length() > 1) ? url.substring(1) : "";
		} 
		return Constants.BaseUrl + url;
	} 
	 
	public static boolean IsNullOrEmpty(String input){
		return (input == null || input.length() == 0);
	}