MCPcopy Create free account
hub / github.com/OpenSignLabs/OpenSign / formatDateToDdMmmYyyy

Function formatDateToDdMmmYyyy

apps/OpenSign/src/constant/Utils.js:3615–3626  ·  view source on GitHub ↗
(date)

Source from the content-addressed store, hash-verified

3613
3614// `formatDateToDdMmmYyyy` is used to format date to dd-mmm-yyyy
3615export const formatDateToDdMmmYyyy = (date) => {
3616 // Create a Date object
3617 const newDate = new Date(date);
3618 // Format the date
3619 const formattedDate = newDate.toLocaleDateString("en-GB", {
3620 day: "2-digit",
3621 month: "short",
3622 year: "numeric"
3623 });
3624 const format = formattedDate.replaceAll(/ /g, "-");
3625 return format;
3626};
3627
3628export const deletePdfPage = async (pdfArrayBuffer, pageNumber) => {
3629 try {

Callers 3

DocumentsReportFunction · 0.90
formatRowFunction · 0.90
RenderReportCellFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected