How to use the es.date.format function in es

To help you get started, we’ve selected a few es examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github apache / metron / metron-interface / metron-config / src / app / general-settings / general-settings.component.ts View on Github external
this.globalConfigService.get().subscribe((config: {}) => {
      this.globalConfig = config;
      if (!this.globalConfig['es.date.format']) {
        this.globalConfig['es.date.format'] = '-';
      }
      if (this.globalConfig['fieldValidations']) {
        this.fieldValidations = JSON.stringify(
          this.globalConfig['fieldValidations'],
          null,
          '\t'
        );
      }
    });
  }
github apache / metron / metron-interface / metron-config / src / app / general-settings / general-settings.component.ts View on Github external
this.globalConfigService.get().subscribe((config: {}) => {
      this.globalConfig = config;
      if (!this.globalConfig['es.date.format']) {
        this.globalConfig['es.date.format'] = '-';
      }
      if (this.globalConfig['fieldValidations']) {
        this.fieldValidations = JSON.stringify(
          this.globalConfig['fieldValidations'],
          null,
          '\t'
        );
      }
    });
  }