GridView, Bind problem

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

hi

asp.net 2.0

I have a GridView on my webpage. One of the columns is a ItemTemplateField.
In EditItemTemplate there is TextBox which displays a datetime value:
Text='<%# Bind("Date") %>'

For example the TextBox will display this date:
10.12.08

Then I modify the date to:
01.12.08

After saving the new date has become:
12.01.08

any suggestions why day and month has swapped places?
 
how should I fix it?

add some format parameter to the bind function or add some settings the
web.config?
 
Back
Top