# Angular 2 - DatePipe fails in Ionic View App

**URL:** <https://forum.ionicframework.com/t/angular-2-datepipe-fails-in-ionic-view-app/40127>\
**Category:** ionic-v3\
**Created:** [December 29, 2015, 10:54pm UTC](https://forum.ionicframework.com/t/angular-2-datepipe-fails-in-ionic-view-app/40127 "2015-12-29T22:54:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![benedictchan](https://avatars.discourse-cdn.com/v4/letter/b/8e7dd6/32.png) [@benedictchan](https://forum.ionicframework.com/u/benedictchan)\
**Post date:** [December 29, 2015, 10:54pm UTC](https://forum.ionicframework.com/t/angular-2-datepipe-fails-in-ionic-view-app/40127/1 "2015-12-29T22:54:31Z")

</div>

I am building an app using Ionic 2 and Angular 2, right now I only run `ionic serve` in my local, and use `ionic upload` then running Ionic View on my Iphone 6 plus as for testing.

Thanks for the Ionic team, everything works fine even with my own components and pipes.

My app runs smooth in my local, but when I `upload` it to Ionic View, whenever I used `DatePipe` in the View of my component, everything after that line will not be showing (probably failed loading).

“”“  
Any format or even without format will fail in the Ionic View App  
{{ birthday | date }}  
{{ birthday | date:‘yMMMMd’}}  
”""

Right now I implemented a simple custom Pipe to overcome this ( as I just need a very simple format ) and it is working again in both local and Ionic View.

My question is, is it I missed any reference in my code? (It runs well in my localhost)  
Also, is there anyway I can debug or help about this kind of things?

Thanks a lot

Benedict

---

<div class="post-metadata">

**Author:** ![brandyshea](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/brandyshea/32/148286_2.png) [@brandyshea](https://forum.ionicframework.com/u/brandyshea)\
**Post date:** [December 30, 2015, 4:03pm UTC](https://forum.ionicframework.com/t/angular-2-datepipe-fails-in-ionic-view-app/40127/2 "2015-12-30T16:03:53Z")

</div>

There are some issues with the DateForm pipe on Angular’s side. Right now it only works on Chrome and Opera. From Angular:

> WARNING: this pipe uses the Internationalization API. Therefore it is only reliable in Chrome and Opera browsers.  
> Formats a date value to a string based on the requested format.

Here is an issue that is tracking it: [Issues with the ECMAScript Internationalization API · Issue #3333 · angular/angular · GitHub](https://github.com/angular/angular/issues/3333)

---

<div class="post-metadata">

**Author:** ![icarus\_31](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/icarus_31/32/94713_2.png) [@icarus\_31](https://forum.ionicframework.com/u/icarus_31)\
**Post date:** [January 1, 2016, 3:05pm UTC](https://forum.ionicframework.com/t/angular-2-datepipe-fails-in-ionic-view-app/40127/3 "2016-01-01T15:05:43Z")

</div>

Hi @benedictchan,

It is not related to your question, but have you installed `ionic-platform-web-client` to your Ionic 2 app before doing ionic upload?

---

<div class="post-metadata">

**Author:** ![benedictchan](https://avatars.discourse-cdn.com/v4/letter/b/8e7dd6/32.png) [@benedictchan](https://forum.ionicframework.com/u/benedictchan)\
**Post date:** [January 4, 2016, 6:19am UTC](https://forum.ionicframework.com/t/angular-2-datepipe-fails-in-ionic-view-app/40127/4 "2016-01-04T06:19:11Z")

</div>

Thanks a lot, that explains as I am using Chrome for my localhost.

---

<div class="post-metadata">

**Author:** ![benedictchan](https://avatars.discourse-cdn.com/v4/letter/b/8e7dd6/32.png) [@benedictchan](https://forum.ionicframework.com/u/benedictchan)\
**Post date:** [January 5, 2016, 12:09am UTC](https://forum.ionicframework.com/t/angular-2-datepipe-fails-in-ionic-view-app/40127/5 "2016-01-05T00:09:00Z")

</div>

Hi @icarus_31 ,

No I haven’t and I don’t even notice there’s a tools like this. As I was just reading only the ionic 2 start up guide…  
Will have a look into it, thanks a lot.
