using moment.js package in ionic 2 project
<p>i want to use in Moment.js package for dates in my project ionic 2 and i'm not sure how to do that
this is the link 
<a href="http://momentjs.com/" rel="noreferrer">moment js link</a></p>

<p>i have datetime variable and i want that to be from my zone area.
should i do that? because it's in javascript and ionic 2 use in typescript</p>

<p>i tried to do it but it's not works</p>

<pre><code>     constructor(public navCtrl: NavController,private platform:Platform) {

   mydate=new Date();
   mydate=moment.moment().format('MMMM Do YYYY, h:mm:ss a');

  }
</code></pre>

<p>when i try to use this </p>

<pre><code>let data = moment().format('YYYYMMDD');
let time = moment().format('HHmmss');
console.log('today is: ', data + ' and time: ', time);
</code></pre>

<p>i get this errror
<a href="https://i.stack.imgur.com/8rdNi.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8rdNi.png" alt="enter image description here"></a></p>