Skip to content

Commit e343aa2

Browse files
authored
Update solution.md
Según repo EN
1 parent 046c2fc commit e343aa2

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

1-js/05-data-types/11-date/1-new-date/solution.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@ El constructor `new Date` utiliza la zona horaria local. Lo único importante po
22

33
Por ejemplo, febrero es el mes 1.
44

5-
El objeto de fecha se puede crear en dos formatos:
6-
7-
1. new Date(año, mes, fecha, hora, minuto, segundo, milisegundo)
5+
Aquí hay un ejemplo con números como componentes de fecha:
86

97
```js run
8+
//new Date(año, mes, día, hora, minuto, segundo, milisegundo)
109
let d1 = new Date(2012, 1, 20, 3, 12);
1110
alert( d1 );
1211
```
1312

14-
2. new Date("fecha-en-string")
13+
También podríamos crear una fecha a partir de un string, así:
1514

1615
```js run
16+
//new Date(datastring)
1717
let d2 = new Date("February 20, 2012 03:12:00");
18-
alert(d2);
18+
alert( d2 );
1919
```
20+

0 commit comments

Comments
 (0)