@angular/common

formatDate

function

Formats a date according to locale rules.

  
    formatDate(  value: string | number | Date,  format: string,  locale: string,  timezone?: string): string;
  
  
Jump to details