Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6758 | Rev 6775 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 6758 Rev 6767
Línea 6... Línea 6...
6
    years = [...years, index]
6
    years = [...years, index]
7
  }
7
  }
8
  return years
8
  return years
9
}
9
}
Línea 10... Línea 10...
10
 
10
 
-
 
11
function getMonths() {
-
 
12
  const months = Array.from({ length: 12 }, (item, i) => {
-
 
13
    return new Date(0, i).toLocaleString('es-ES', { month: 'long' })
-
 
14
  })
-
 
15
 
-
 
16
  return months
-
 
17
}
-
 
18
function getMonthName(monthNumber) {
-
 
19
  const date = new Date()
-
 
20
  date.setMonth(monthNumber - 1)
-
 
21
 
-
 
22
  return date.toLocaleString('es-ES', {
-
 
23
    month: 'long',
-
 
24
  })
-
 
25
}
-
 
26