MCPcopy
hub / github.com/flatpickr/flatpickr / getDateStr

Function getDateStr

src/index.ts:2813–2831  ·  view source on GitHub ↗
(specificFormat?: string)

Source from the content-addressed store, hash-verified

2811 }
2812
2813 function getDateStr(specificFormat?: string) {
2814 const format =
2815 specificFormat ||
2816 (self.config.altInput ? self.config.altFormat : self.config.dateFormat);
2817
2818 return self.selectedDates
2819 .map((dObj) => self.formatDate(dObj, format))
2820 .filter(
2821 (d, i, arr) =>
2822 self.config.mode !== "range" ||
2823 self.config.enableTime ||
2824 arr.indexOf(d) === i
2825 )
2826 .join(
2827 self.config.mode !== "range"
2828 ? self.config.conjunction
2829 : self.l10n.rangeSeparator
2830 );
2831 }
2832
2833 /**
2834 * Updates the values of inputs associated with the calendar

Callers 2

onBlurFunction · 0.85
updateValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…