Send variables to other classes
<p>Can I have a function that checks if true or false and send my verbal to other classes?</p>

<p>I tried:</p>

<pre><code>public class Func
{
    public static bool CheckDate(string number)
    {
        string new_number = number.ToString();
        if (new_number.Length==8)
        {
           string yyyy = new_number.Substring(0, 4);
           string mm = new_number.Substring(4, 2);
           string dd = new_number.Substring(6, 2);
           return true;
        }
        else
        {
            return false;
        }
    }
}
</code></pre>

<p>I want to send the verbal <code>yyyy</code>, <code>mm</code>, <code>dd</code> to my <code>Program.cs</code> class.</p>

<p>What should I do?</p>
