--- title: Date manipulation id: 5966c21cf732a95f1b67dd28 challengeType: 5 videoUrl: '' localeTitle: Manipulação de data --- ## Description
Tarefa:

Dada uma string de data em EST, imprima a data fornecida como uma string com 12 horas adicionadas ao tempo.

O fuso horário deve ser preservado.

Exemplo de entrada:

"March 7 2009 7:30pm EST"

Exemplo de saída:

"March 8 2009 7:30am EST"

## Instructions
## Tests
```yml tests: - text: add12Hours é uma função. testString: 'assert(typeof add12Hours === "function", "add12Hours is a function.");' - text: add12Hours(dateString) deve retornar uma string. testString: 'assert(typeof add12Hours(tests[0]) === "string", "add12Hours(dateString) should return a string.");' - text: 'add12Hours("" + tests[0] + "") deve retornar "" + answers[0] + ""' testString: 'assert(add12Hours(tests[0]) === answers[0], "add12Hours("" + tests[0] + "") should return "" + answers[0] + """);' - text: 'Deve mudar o dia do handel. add12Hours("" + tests[1] + "") deve retornar "" + answers[1] + ""' testString: 'assert(add12Hours(tests[1]) === answers[1], "Should handel day change. add12Hours("" + tests[1] + "") should return "" + answers[1] + """);' - text: 'Deve mudar mês mês em anos bissextos. add12Hours("" + tests[2] + "") deve retornar "" + answers[2] + ""' testString: 'assert(add12Hours(tests[2]) === answers[2], "Should handel month change in a leap years. add12Hours("" + tests[2] + "") should return "" + answers[2] + """);' - text: 'Deve mudar de mês handel em anos comuns. add12Hours("" + tests[3] + "") deve retornar "" + answers[3] + ""' testString: 'assert(add12Hours(tests[3]) === answers[3], "Should handel month change in a common years. add12Hours("" + tests[3] + "") should return "" + answers[3] + """);' - text: 'Deve mudar o ano de mão. add12Hours("" + tests[4] + "") deve retornar "" + answers[4] + ""' testString: 'assert(add12Hours(tests[4]) === answers[4], "Should handel year change. add12Hours("" + tests[4] + "") should return "" + answers[4] + """);' ```
## Challenge Seed
```js function add12Hours (dateString) { // Good luck! return true; } ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```