ps-toolkit-ui 0.2.60 → 0.2.61

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.
@@ -1062,13 +1062,14 @@
1062
1062
  }
1063
1063
  return '<div class="ltr">' + moment__namespace(d).locale('fa').format('jYYYY/jMM/jDD HH:mm') + '</div>';
1064
1064
  };
1065
- HelperClass.getDate = function (dt) {
1065
+ HelperClass.getDate = function (dt, format) {
1066
+ if (format === void 0) { format = 'jYYYY/jMM/jDD'; }
1066
1067
  try {
1067
1068
  if (dt === null) {
1068
1069
  return '';
1069
1070
  }
1070
1071
  var d = parseInt(dt.substring(6, dt.length - 2), 10);
1071
- return moment__namespace(d).locale('fa').format('jYYYY/jMM/jDD');
1072
+ return moment__namespace(d).locale('fa').format(format);
1072
1073
  }
1073
1074
  catch (e) {
1074
1075
  return dt;