I create asp.net mvc application using mysql as the database in the back end.
But I confused with the way it store the date data.
For e.g. I put 06-03-2012 in the input field, and after saved, in my development computer it will show March 6, 2012 which is exactly what I want, but when I run the application in the server (published application), it will give me; June 3, 2012.
The mysql server both in my development computer and in the server is the same version.
Here is the code I use to get the input:
<tr>
<td>@Html.LabelFor(m => m.Tanggal)
</td>
<td>
@Html.EditorFor(m => m.Tanggal)
@Html.ValidationMessageFor(m => m.Tanggal)
</td>
</tr>
What should I do to fix that?
Thanks in advance for the help.
In your web.config, change the culture :
The globalization is a child node of the system.web node.