How to return the number of a month in C# function
<p>I want to return the number of a month and i made a function but it always returns 0</p>

<p>this is my code:</p>

<pre><code>public int getNrMonth(String s)
    {
        int nr=0;
        if (s.Equals("January"))
            nr = 1
        if (s.Equals("February"))
            nr = 2;
        return nr;


    }
</code></pre>

<p>Could someone tell me wath is wrong please? I'm beginner!</p>
