native-pytech 1.0.180 → 1.0.182
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -75,9 +75,9 @@ const phoneToText = (phone) => {
|
|
|
75
75
|
}
|
|
76
76
|
return extra ? `${base}${extra}` : base;
|
|
77
77
|
};
|
|
78
|
-
const dateToTextFormat = (date, format = '
|
|
78
|
+
const dateToTextFormat = (date, format = 'yyyy-MM-dd') => {
|
|
79
79
|
const _format = format.replaceAll('Y', 'y').replaceAll('m', 'M').replaceAll('D', 'd');
|
|
80
|
-
return DateFormatter(date,
|
|
80
|
+
return DateFormatter(date, format);
|
|
81
81
|
};
|
|
82
82
|
// ------------------- Export -------------------
|
|
83
83
|
const Formats = {
|