title: How to get Date Object in Ionic 4
body: <p>I want to get Date Object in Ionic 4, but i am getting Date not found, i am not able to compile the code. </p>
  
  <pre><code>import { Component, OnInit } from '@angular/core';
  
  
  @Component({
    selector: 'app-bookingdetail',
    templateUrl: './bookingdetail.page.html',
    styleUrls: ['./bookingdetail.page.scss'],
  })
  export class BookingdetailPage implements OnInit {
     d = new Date();
  }
  
  
  </code></pre>