Display date on the basis of culture
<p>I want to display the date time (which I've placed on master page); in different language on the basis of current culture.</p>

<p>My javascript code on master:</p>

<pre><code>    &lt;script type="text/javascript"&gt;
        var t;
        $(document).ready(function pageLoad() {
            setTimeout('SetTime()', 1000);
        });

        function SetTime() {
            var date = new Date();
            date.format = 'MM.DD.YYYY';
            $get('&lt;%=lbl.ClientID %&gt;').innerHTML = date.toLocaleDateString() + " : " + date.toLocaleTimeString();
            setTimeout("SetTime()", 1000);
        }  

    &lt;/script&gt;
</code></pre>

<p>It always shows datetime string in English even if I set different culture say: french or any other.</p>

<p>I tried other way through code-behind file of master page:</p>

<pre><code> protected override void OnInit(EventArgs e)
{
    base.OnInit(e);
    Timer1.Tick += new EventHandler&lt;EventArgs&gt;(Timer1_Tick);
}

void Timer1_Tick(object sender, EventArgs e)
{
    Label2.Text = DateTime.Now.ToLongDateString() + " " + DateTime.Now.ToLongTimeString();
    UpdatePanel1.Update();
}
</code></pre>

<p>Here, I'm getting date string in different language on the basis of culture selected. But I don't want to use Timer. Is there any way, I could achieve this without using timer. Thanks. </p>
