title: Is it safe to assume DayOfWeek's numeric value?
body: <p>I have the day of the week stored in a database, where Sunday = 1, Monday = 2 etc.</p>
  
  <p>In a query from the database, I need to convert the day to <code>System.DayOfWeek</code>.</p>
  
  <p>According to <a href="http://msdn.microsoft.com/en-us/library/system.dayofweek.aspx" rel="noreferrer">MSDN</a>:</p>
  
  <blockquote>
    <p>The value of the constants in this enumeration ranges from <strong>DayOfWeek.Sunday</strong> to <strong>DayOfWeek.Saturday</strong>. If cast to an integer, its value ranges from zero (which indicates <strong>DayOfWeek.Sunday</strong>) to six (which indicates <strong>DayOfWeek.Saturday</strong>).</p>
  </blockquote>
  
  <p>This means that after I query the data, I need to subtract 1 before I convert the result to <code>DayOfWeek</code>.</p>
  
  <p>Is this safe?<br>
  Or do I need to worry about the numeric values of <code>DayOfWeek</code> changing?</p>