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

Function formatDate

services/date.js:16–17  ·  view source on GitHub ↗
(date, format = 'DD/MM/YYYY')

Source from the content-addressed store, hash-verified

14export const getNow = () => dayjs();
15
16export const formatDate = (date, format = 'DD/MM/YYYY') =>
17 dayjs(date).format(format);
18
19export const parseToDate = (value, format = '') => {
20 return dayjs(value, format).toDate();

Callers 3

ActionFunction · 0.90
getCurrencyExchangeFunction · 0.90
buildDateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected