Calculate days between two day_of_week : Android
<p>I have a query regarding to find out which is day (in given list) is nearest day from today.</p>

<p>For example </p>

<pre><code>day_list is Mon, Tue, Fri, Sat
and today is Wed
</code></pre>

<p><em>Now If we calculate days on paper,</em></p>

<pre><code>Wed to Mon = 5 days
Wed to Tue = 6 days
Wed to Fri = 2 days
Wed to Sat = 3 days 
</code></pre>

<p><em>So answer will be <code>Fri</code> .</em> </p>

<p><em>But in code, how can I implement this logic?</em> Or is there any other way to optimize its process (regarding if_else)?</p>
