title: How to get date range for a particular week number
body: <p>I am trying to get date range for a particular week number.</p>
  
  <p>Following is my code to get week number with respect to current date</p>
  
  <pre><code>final date = DateTime.now();
  final startOfYear = new DateTime(date.year, 1, 1, 0, 0);
  final firstMonday = startOfYear.weekday;
  final daysInFirstWeek = 8 - firstMonday;
  final diff = date.difference(startOfYear);
  var weeks = ((diff.inDays - daysInFirstWeek) / 7).ceil();
  
  if (daysInFirstWeek &gt; 3) {
    weeks += 1;
  }
  print("Week Range $weeks");
  </code></pre>
  
  <p>What I don't understand is how I get start and end date for a particular week number.</p>
  
  <p>Any help would be appreciated.</p>