MCPcopy Create free account
hub / github.com/BrasilAPI/BrasilAPI / formatDate

Function formatDate

services/sefaz/index.js:5–8  ·  view source on GitHub ↗
(date)

Source from the content-addressed store, hash-verified

3
4function parseObject(obj) {
5 const formatDate = (date) => {
6 const newDate = new Date(date.split('/').reverse());
7 return newDate.toISOString().slice(0, 10);
8 };
9
10 const convertKeysToLowerCase = Object.fromEntries(
11 Object.entries(obj).map(([k, v]) => [k.toLowerCase(), v])

Callers 1

parseObjectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected