title: Finding time and date with Regular Expression (RegEx) in Dart language
body: <p>I'm writing an application with Flutter. I read the times and dates from a source. The date and time format string sent by the resource is:</p>
  <p>(Day, Month, Year, Hour, Minute, Second)</p>
  <pre><code>07.04.2021 13:30:00
  03.04.2021 11:30:00
  04.04.2021 17:30:00
  03.04.2021 17:30:00
  </code></pre>
  <p>I want to convert this date and time format to DateTime data type with  <code>DateTime.parse()</code> function. Here are some examples of what this function accepts as strings and what I need:</p>
  <pre><code>&quot;2012-02-27 13:27:00&quot;
  &quot;20120227 13:27:00&quot;
  &quot;20120227T132700&quot;
  </code></pre>
  <p>I have to convert the string type data coming to me from the source into one of these formats. But in Dart language I couldn't create the Regular Expression needed to do this and couldn't find it anywhere.</p>
  <p><strong>I would be very grateful if anyeone could help me understand what I should do.</strong></p>