title: how to remove time stamp or get only date form datepicker in flutter default datepicker?
body: <p>I am trying to get date from default datepicker widget of flutter but when i select date i get time with it.
  I only want date not time. &amp; would also like to change date format if possible.</p>
  
  <p>This is what i have used from example somewhere.</p>
  
  <pre><code>DateTime selectedDate = DateTime.now();
  
  Future&lt;Null&gt; _selectDate(BuildContext context) async {
      final DateTime picked = await showDatePicker(
          context: context,
          initialDate: selectedDate,
          firstDate: DateTime(2019),
          lastDate: DateTime(2020));
      if (picked != null &amp;&amp; picked != selectedDate)
        setState(() {
          selectedDate = picked;
        });
    }
  </code></pre>
  
  <p>This is where I am getting value to string.
  It prints like "2019-04-16 12:18:06.018950"</p>
  
  <pre><code>child: FlatButton(
                          materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
                          onPressed: () {
                            _selectDate(context);
                            print("Selected Date = $selectedDate");
                          },
                          child: Text(selectedDate == null
                              ? "Select Date"
                              : selectedDate.toString()),
                        )),
  </code></pre>
  
  <p>I want <strong>only date</strong> from this "2019-04-16 12:18:06.018950" and also change the format of date displaying like <strong>"dd-mm-yyyy"</strong></p>
  
  <p>is this possible?</p>