title: How to convert date in flutter without using third party package?
body: <p>I want to convert <code>Date</code> in Flutter without using third party package like <code>intl</code>. At the moment I'm using <code>DateTime.now()</code> to get the current date. I know about some packages but can I format date without using any third party package??</p>
  <p><strong>Default Date Format</strong>: 2021-07-22 13:45:50.200266</p>
  <p><strong>Required Date Format</strong>: 22/07/2021 (DD/MM/YYYY)</p>
  <pre class="lang-dart prettyprint-override"><code>DateTime selectedDate = DateTime.now();
  </code></pre>
  <p>Thanks for the help. :)</p>