diff --git a/components/elements/index.js b/components/elements/index.js index 42284bde..7f000d7c 100644 --- a/components/elements/index.js +++ b/components/elements/index.js @@ -1867,7 +1867,8 @@ const RenderFileUpload = (field) => { let month = repDate.getMonth() + 1; let year = repDate.getFullYear(); - const pdfFileNameDateStamp = year + "-" + month + "-" + day; + const pdfFileNameDateStamp = + year + "-" + ("0" + month).slice(-2) + "-" + ("0" + day).slice(-2); switch (docCode) { case "000000":