title: Displaying week numbers / calendar weeks
body: <p>I want to be able to display the current calendar week, but as far as I have seen that isn't possible with <code>DateTime</code>.</p>
  
  <p>Currently I have to get the current day number, divide it by 7 and round up that number. The last part is where I'm stuck at. Is there a way to round up integers in Flutter?</p>
  
  <p>Here is the code I use:</p>
  
  <pre><code>class CurrentWeek extends StatefulWidget {
    @override
    State&lt;StatefulWidget&gt; createState() {
      return new CurrentWeekState();
    }
  }
  
  class CurrentWeekState extends State&lt;CurrentWeek&gt; {
  
    DateTime currentTime;
    String currentDayCount;
  
    @override
    void initState() {
      super.initState();
      currentTime = DateTime.now();
    }
  
  
    @override
    Widget build(BuildContext context) {
      currentDayCount = DateFormat("D").format(currentTime);
      return Text(currentDayCount);
    }
  }
  </code></pre>