Need to have date mask depending on the culture in jquery
<p>MVC pages with culture depending on the user. In Search option (search can be done by DueDate), I need to have a mask on that DueDate text box. Mask must be dependant on the user's culture. In both js and cshtml have an error saying: <code>mask.split is not a function</code>. Changed my <code>jquery.maskedinput-1.2.3.js</code> from <code>make.split</code> to <code>make.toString()</code>.split and the error is gone, but must looks like this: <code>[object Object]</code> or has some <code>01</code> numbers. Any idea? Code in <code>cshtml</code> looks like this:</p>

<pre><code>   &lt;script type="text/javascript"&gt;
    $(function () {
        var maskFormat = @Html.CurrentDateMask();
        $(".DateBox").mask(maskFormat);
    });
   &lt;/script&gt;
</code></pre>
