Difference date format in development environment and server
<p>I will explain my issue with the help of problem in one report.im using visual studio 2010 and sql server 2008.</p>

<p>In my development system i retrieve the details from database with in a date its working well. In text box im displaying date in <code>dd/mm/yy</code> format</p>

<pre><code>ld_fromdate = Convert.ToDateTime(como.ff_SetDate(txtcreatedfromdate.Text));

public string ff_SetDate(string datetime)
{
        string[] date = datetime.Split(&amp;#39;/&amp;#39;);
        string DD = date[0];
        string MM = date[1];
        string YY = date[2];
        string dt = DD +"/"+ MM +"/"+ YY;
        return (dt);      
}
</code></pre>

<p>when i add this to server its not working instead the below code of conversion is working</p>

<pre><code>public string ff_mm_dd_yy_Date(string strDate)
{
       string DD, Mm, Yy;
       string[] str = strDate.Split(&amp;#39;/&amp;#39;);
       DD = str[0];
       Mm = str[1];
       Yy = str[2];
       return ("" + Mm +"/"+ DD +"/"+ Yy + "";);
}
</code></pre>

<p>first one working in development environment secon one working in server. As many other applications hosted in server i cant change system settings. How can i maintain through coding?</p>

<p>Thanks in Advance
Amritha</p>
