Code example for Date

Methods: format

0
			mKey + "\n" +
			"accuracy: " + mAccuracy + "\n" + 
			"confidence: " + mConfidence + "\n" +
			"latitude: " + mLatitude + "\n" +
			"longitude: " + mLongitude + "\n" + 
			"date: " + DateFormat.format("dd.MM.yyyy kk:mm", new Date(mDate)) + "\n"
		; 
	} 
	 
	public String toGpx(String type)
	{ 
		return 
			"<trkpt lat=\"" + getLatitude() + "\" lon=\"" + getLongitude() + "\">" + 
				"<time>" + (new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'").format(new Date(getDate())).toString()) + "</time>" +
				"<name>" + getKey() + "</name>" + 
				"<desc>type: " + type + ", accuracy: " + getAccuracy() + ", confidence: " + getConfidence() + "</desc>" +
			"</trkpt>\n"; 
	} 
}