Code example for SimpleDateFormat

Methods: format

0
			return false; 
		} 
	}  
 
	public String formatDateTime(String formatString, Date d){
		Format formatter = new SimpleDateFormat(formatString);
		return formatter.format(d);
	} 
 
	public String getAppVersion(){
		PackageInfo pi;
		try { 
			pi = c.getPackageManager().getPackageInfo(c.getPackageName(), 0);
			return pi.versionName;
		} catch (NameNotFoundException e) {
			return ""; 
		} 
	} 
	 
	public boolean isOnline() { 
		try{