title: Flutter: Check if date is between two dates
body: <p>I need to check date is between two dates or not.</p>
  <p>I tried to search it but didn't got fruitful results.
  May be you have seen such scenarios. So, seeking your advise.</p>
  <p>Here is my code.</p>
  <pre><code>var service_start_date = '2020-10-17';
  var service_end_date = '2020-10-23';
  var service_start_time = '10:00:00';
  var service_end_time = '11:00:00';
  
  DateTime currentDate = new DateTime.now();
  DateTime times = DateTime.now();
  
  
    @override
    void initState() {
      super.initState();
      test();
    }
  
   test() {
      String currenttime = DateFormat('HH:mm').format(times);
      String currentdate = DateFormat('yyyy-mm-dd').format(currentDate);
      print(currenttime);    
      print(currentdate);
      
    }
  </code></pre>
  <p>So, basically i have start date and end date. I need to check current date is falling between these two dates or not.</p>