title: Error: A value of type 'TimeOfDay' can't be assigned to a variable of type 'DateTime'
body: <p>I am trying to get time from time picker in this format <code>Thrusday at 10:00pm until</code>. I did found a solution on google to use <code>intl</code> library from dart to format date to display in <code>10:00pm</code> format. but here the problem is whenever i try to put <code>DataTime.now()</code> to get <code>time picker</code> I get this error. </p>
  
  <blockquote>
    <p>Error: A value of type 'TimeOfDay' can't be assigned to a variable of type 'DateTime'.</p>
  </blockquote>
  
  <p>Here is my code </p>
  
  <pre><code>DateTime _currentTime = new DateTime.now();
  
    Future&lt;Null&gt; selectTime(BuildContext context) async {
      DateTime seletedTime = await showTimePicker(context: context, initialTime: _currentTime);
    }
  </code></pre>
  
  <p>Is there any way to get the time in <code>12 hour clock time</code> something like this <code>10:00pm</code>.</p>
  
  <p>any help would be great.</p>