TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
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?
Reply
Answers (
1
)
saving View state
ASP.NET using both VB and C#.