function getFullYear(d)
{
   var y = d.getYear();

   if (y < 2000) 
   {
        y += 1900
   }

   return y
}

function getMonthName(d)
{
   var theMonth = d.getMonth()
   
   if (theMonth == 0) 
            return "Enero"
   if (theMonth == 1) 
            return "Febrero"
   if (theMonth == 2) 
            return "Marzo"
   if (theMonth == 3) 
            return "Abril"
   if (theMonth == 4) 
            return "Mayo"
   if (theMonth == 5) 
            return "Junio"
   if (theMonth == 6) 
            return "Julio"
   if (theMonth == 7) 
            return "Agosto"
   if (theMonth == 8) 
            return "Septiembre"
   if (theMonth == 9) 
            return "Octubre"
   if (theMonth == 10) 
            return "Noviembre"
   if (theMonth == 11) 
            return "Diciembre"
}

function customDateString(oneDate) {
	var theMonth = getMonthName(oneDate)
	var theYear = getFullYear(oneDate)
		
	return oneDate.getDate() + " - "  + theMonth + " - " + theYear
}