@trudb/tru-common-lib 0.0.300 → 0.0.302

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.
@@ -24,7 +24,6 @@ import * as i1$4 from '@angular/material/select';
24
24
  import { MatSelectModule } from '@angular/material/select';
25
25
  import * as i5 from '@angular/material/core';
26
26
  import { MatOptionModule } from '@angular/material/core';
27
- import moment$1 from 'moment';
28
27
  import { MatButtonModule } from '@angular/material/button';
29
28
  import { MatInputModule } from '@angular/material/input';
30
29
  import * as i1$5 from '@angular/platform-browser';
@@ -1682,9 +1681,14 @@ class TruUtil {
1682
1681
  }
1683
1682
  return null;
1684
1683
  };
1685
- this.strIsDate = (date, format = undefined) => {
1686
- if (moment$1(date, format || "MM/DD/YYYY", true).isValid()) {
1687
- return true;
1684
+ this.isDate = (date) => {
1685
+ if (Object.prototype.toString.call(date) === '[object Date]') {
1686
+ if (isNaN(date.getTime())) {
1687
+ return false;
1688
+ }
1689
+ else {
1690
+ return true;
1691
+ }
1688
1692
  }
1689
1693
  else {
1690
1694
  return false;