(date)
| 3613 | |
| 3614 | // `formatDateToDdMmmYyyy` is used to format date to dd-mmm-yyyy |
| 3615 | export 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 | |
| 3628 | export const deletePdfPage = async (pdfArrayBuffer, pageNumber) => { |
| 3629 | try { |
no outgoing calls
no test coverage detected