0

I want to use the function formatDate wich is used by datePipe of Angular the function is in:

angular/packages/common/src/i18n/format_date.ts

when i try to import it:

import {format_date} from '@angular/common/src/i18n/format_date' I get an error:

Cannot find module "@angular/common/src/i18n/format_date"

Any Solution to use this functio (or any other function used on pipes) in a busines logic file (not pipe)

Slimane MEHARZI
  • 334
  • 5
  • 11
  • Although the question is slightly different, I think it still answers it. If you fell it doesn't, notify me so that I can re-open it. –  Feb 13 '19 at 14:38

1 Answers1

1

That should be formatDate

import { formatDate } from '@angular/common';
Igor
  • 60,821
  • 10
  • 100
  • 175