Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

208
Views
Angular date pipe is displaying the incorrect date

I got this date 2021-10-08T23:47:34.000Z from the server and anytime i used the angular date pipe on it, it displaying Oct 9, 2021 instead of Oct 8, 2021

<ng-container matColumnDef="created_at">
      <th mat-header-cell *matHeaderCellDef>Date</th>
      <td mat-cell *matCellDef="let element">
        {{ element.created_at | date }}
      </td>
</ng-container>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Angular's DatePipe uses locale to display the date, which means it changes it based on the user's timezone.

You can specify the timezone at the end of the pipe.

{{ element.created_at | date:'mediumDate':'UTC' }}
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!