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.
@@ -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('jYYYY/jMM/jDD HH:mm');
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);