@angular/common

formatDate

function

Formats a date according to locale rules.

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