code: function DateToStr(date) {
  
  		// Init the return variable
  		var sRet = '';
  
  		// Add the year
  		sRet += date.getFullYear() + '-';
  
  		// Add the month
  		var iMonth = date.getMonth();
  		sRet += ((iMonth < 10) ? '0' + iMonth : iMonth.toString()) + '-'
  
  		// Add the day
  		var iDay = date.getDate();
  		sRet += ((iDay < 10) ? '0' + iDay : iDay.toString())
  
  		// Return the date
  		return sRet;
  	}
docs: Date to String
  
  Turns a Date Object into a date string
  
  @name DateToStr
  @param Date date					The value to turn into a string
  @return String