yibing26

yibing26

  • NA
  • 26
  • 0

how do i format date in editable grid

Sep 26 2004 10:33 PM
i use a datagrid to display my information.. there is a column showing a date.. whenever it shows the date, it display as 12/25/2004 12:00:00 AM.. i manually reformat the date by doing this : e.Item.Cells(0).Text = Replace(e.Item.Cells(0).Text, " 12:00:00 AM", "") arr = Split(e.Item.Cells(0).Text, "/") e.Item.Cells(1).Text = arr(1) & "/" & arr(0) & "/" & arr(2)) in the itemdatabound.. the problem is whenever i click on the edit link, the date inside the textboxes will show 12/25/2004 12:00:00 AM again.. how can i do to reformat it back to the DD/MM/YYYY?

Answers (1)