Code example for Date

Methods: toString

0
	 
	public void setElementActive(int position, boolean active){
		PlanElement element= items.get(position);
		element.isActive= active;
		if(active){
			Date today= new Date(new java.util.Date().getTime());
			element.startDate= today.toString();
		} 
		else 
			element.startDate= "";		
	} 
 
	public int getCount() { 
		return items.size();
	} 
 
	public PlanElement getItem(int position) {
		return items.get(position);
	} 
 
	public long getItemId(int arg0) {