# Latest Ionic version - InvalidePipeArgument "DatePipe" on iOS

**URL:** <https://forum.ionicframework.com/t/latest-ionic-version-invalidepipeargument-datepipe-on-ios/110155>\
**Category:** ionic-v3\
**Created:** [October 27, 2017, 5:59am UTC](https://forum.ionicframework.com/t/latest-ionic-version-invalidepipeargument-datepipe-on-ios/110155 "2017-10-27T05:59:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pwespi](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@pwespi](https://forum.ionicframework.com/u/pwespi)\
**Post date:** [October 27, 2017, 7:55am UTC](https://forum.ionicframework.com/t/latest-ionic-version-invalidepipeargument-datepipe-on-ios/110155/2 "2017-10-27T07:55:39Z")

</div>

I don’t know what the cause of your problem is, but here is a custom date pipe using [date-fns](https://date-fns.org/) that works great for me:

> [@Dates and Ionic Storage](https://forum.ionicframework.com/t/dates-and-ionic-storage/100000/11):
>
> I am not a big fan of the stock Angular date pipe, because it relies on the very wobbly JavaScript i18n language support. Here is the date pipe I use: import {Injectable, Pipe, PipeTransform} from '@angular/core'; import {TranslateService} from "@ngx-translate/core"; declare function require(name:string): any; let format = require('date-fns/format'); @Pipe({ name: 'dateformat' }) @Injectable() export class DateFormatPipe implements PipeTransform { private format: string; constructor(xla…

---

_[View the full topic](https://forum.ionicframework.com/t/latest-ionic-version-invalidepipeargument-datepipe-on-ios/110155)._
