GridView, Bind problem

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?
 
J

Jeff

how should I fix it?

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,058
Latest member
QQXCharlot

Latest Threads

Top