title: Date Picker in flutter without time
body: <p>I am trying to pick a date only. I used <a href="https://pub.dev/packages/flutter_holo_date_picker" rel="nofollow noreferrer"><code>flutter_holo_date_picker</code></a> dependency. When I select date I get time with it. But I only want date not time. How can I remove it?</p>
  <p>Here is my code -</p>
  <pre class="lang-dart prettyprint-override"><code>import 'package:flutter/material.dart';
  import 'package:flutter_holo_date_picker/flutter_holo_date_picker.dart';
  
  class WidgetPage extends StatefulWidget {
    @override
    _WidgetPageState createState() =&gt; _WidgetPageState();
  }
  
  class _WidgetPageState extends State&lt;WidgetPage&gt; {
    late DateTime _selectedDate;
  
    @override
    Widget build(BuildContext context) {
      return SafeArea(
        child: Scaffold(
          body: Center(
            child: Container(
              padding: const EdgeInsets.symmetric(horizontal: 25),
              child: Expanded(
                child: Row(
                  children: &lt;Widget&gt;[
                    Expanded(
                      child: DatePickerWidget(
                        looping: false, // default is not looping
                        firstDate: DateTime(1990, 01, 01),
                        lastDate: DateTime(2030, 1, 1),
                        initialDate: DateTime(1991, 10, 12),
                        dateFormat: &quot;dd-MMM-yyyy&quot;,
                        locale: DatePicker.localeFromString('en'),
                        onChange: (DateTime newDate, _) =&gt;
                            _selectedDate = newDate,
                        pickerTheme: const DateTimePickerTheme(
                          itemTextStyle:
                              TextStyle(color: Colors.black, fontSize: 19),
                          dividerColor: Colors.blue,
                        ),
                      ),
                    ),
                    Expanded(
                      child: TextButton(
                        onPressed: (){
                          print('current_date: $_selectedDate');
                        },
                        child: const Text('submit'),
                      ),
                    ),
                  ],
                ),
              ),
            ),
          ),
        ),
      );
    }
  }
  </code></pre>
  <p>Output -
  <a href="https://i.stack.imgur.com/02IOq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/02IOq.png" alt="1" /></a></p>
  <p>Expected output will be -</p>
  <blockquote>
  <p>current_date: 2022-1-1</p>
  </blockquote>