ps-toolkit-ui 1.15.52 → 1.15.53
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.
- package/bundles/ps-toolkit-ui.umd.js +3 -2
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/helper.class.js +3 -3
- package/fesm2015/ps-toolkit-ui.js +2 -2
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/helper.class.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1466,12 +1466,13 @@
|
|
|
1466
1466
|
return dt;
|
|
1467
1467
|
}
|
|
1468
1468
|
};
|
|
1469
|
-
HelperClass.getDateTime = function (dt) {
|
|
1469
|
+
HelperClass.getDateTime = function (dt, format) {
|
|
1470
|
+
if (format === void 0) { format = 'jYYYY/jMM/jDD HH:mm'; }
|
|
1470
1471
|
if (dt === null) {
|
|
1471
1472
|
return '';
|
|
1472
1473
|
}
|
|
1473
1474
|
var d = parseInt(dt.substring(6, dt.length - 2), 10);
|
|
1474
|
-
return moment__namespace(d).locale('fa').format(
|
|
1475
|
+
return moment__namespace(d).locale('fa').format(format);
|
|
1475
1476
|
};
|
|
1476
1477
|
HelperClass.toPrice = function (l, cv) {
|
|
1477
1478
|
return !isNaN(parseFloat(cv)) ? parseFloat(cv).toLocaleString() + ' ' + l('Rial') : l(cv);
|