<h1>
    Parsing Dates and Numbers
</h1>
<p>
    To globalize your application, register the appropriate culture
    while registering the C1 MVC scripts.
    <a href="http://wijmo.com/5/docs/static/globalization.html" target="_blank">
        Wijmo includes over 40 culture files you can choose from.
    </a>
</p>

<label>
    Please select a culture
    @Html.Partial("_CultureSelector")
</label>

<h2>
    Dates
</h2>
<p>
    Dates are parsed using the
    <b>Globalize.parseDate</b> function.
    The format strings are the same used to format dates. For details regarding format strings, please refer the
    <a href="http://helpcentral.componentone.com/nethelp/c1mvchelpers/wijmo.Globalize.Class.html#formatDate" target="_blank">
        online documentation</a>.
</p>

<p>
    Try it yourself with the help of the sample below:
</p>
<label>
    Input format
    <input id="dtFmt" value="d">
</label>
<label>
    Input string
    <input id="dtIn" value="12/31/2016">
</label>
<button id="dtBtn" class="btn btn-default">
    Parse Date
</button>
<br>
<div id="dtOutput">
</div>

<h2>
    Numbers
</h2>
<p>
    Numbers are parsed using the <b>Globalize.parseFloat</b> function.
    The format strings are the same used to format numbers. For details regarding format strings, please refer the
    <a href="http://helpcentral.componentone.com/nethelp/c1mvchelpers/wijmo.Globalize.Class.html#formatNumber" target="_blank">
        online documentation</a>.
</p>

<p>
    Try it yourself with the help of the sample below:
</p>
<label>
    Input format
    <input id="numFmt" value="n2">
</label>
<label>
    Input string
    <input id="numIn" value="123.456">
</label>
<button id="numBtn" class="btn btn-default">
    Parse Number
</button>
<br>
<div id="numOutput">
</div>

<div style="margin-bottom:2in">
</div>