unable to convert string to date in asp.net correctly
<p>I unable to  convert string to date, my string like 17/12/2012 
Code written for this is shown below</p>

<pre><code>public string Date_Convert(string dt1)
{
    string strdate = string.Empty;
    Thread.CurrentThread.CurrentCulture = new CultureInfo("en-GB");
    DateTime dt = Convert.ToDateTime(dt1);
    strdate = dt.Month.ToString() + "/" + dt.Day.ToString() + "/" + dt.Year.ToString();
    Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
    return strdate;
}
</code></pre>

<p>It is working fine in my local system. And not working in my server(which is located at Australia)of course I tried with different culture settings in the above code,</p>

<p>I'm using this date string in sql query in where condition.</p>

<p>please help me, It killed my one day time, and thanks in advance.</p>
