MCPcopy Index your code
hub / github.com/OpenSignLabs/OpenSign / selectFormat

Function selectFormat

apps/OpenSign/src/constant/Utils.js:469–502  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

467};
468
469export const selectFormat = (data) => {
470 switch (data) {
471 case "L":
472 return "MM/dd/yyyy";
473 case "MM/DD/YYYY":
474 return "MM/dd/yyyy";
475 case "DD-MM-YYYY":
476 return "dd-MM-yyyy";
477 case "DD/MM/YYYY":
478 return "dd/MM/yyyy";
479 case "LL":
480 return "MMMM dd, yyyy";
481 case "DD MMM, YYYY":
482 return "dd MMM, yyyy";
483 case "YYYY-MM-DD":
484 return "yyyy-MM-dd";
485 case "MM-DD-YYYY":
486 return "MM-dd-yyyy";
487 case "MM.DD.YYYY":
488 return "MM.dd.yyyy";
489 case "MMM DD, YYYY":
490 return "MMM dd, yyyy";
491 case "MMMM DD, YYYY":
492 return "MMMM dd, yyyy";
493 case "DD MMMM, YYYY":
494 return "dd MMMM, yyyy";
495 case "DD.MM.YYYY":
496 return "dd.MM.yyyy";
497 case "DD-MMM-YYYY":
498 return "dd-MMM-yyyy";
499 default:
500 return "MM/dd/yyyy";
501 }
502};
503
504export const changeDateToMomentFormat = (format) => {
505 switch (format) {

Callers 6

formatDateListFunction · 0.90
changeDateFormatFunction · 0.90
addPreferenceOptFunction · 0.90
addWidgetOptionsFunction · 0.70
addWidgetSelfsignOptionsFunction · 0.70
formatDateTimeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected