This is a migrated thread and some comments may be shown as answers.

[Solved] Date Type Format : Adding 12:00:00 AM

1 Answer 74 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alfa
Top achievements
Rank 1
Alfa asked on 17 Nov 2009, 08:14 AM
Hi,
I have a date type column
<Controls:GridViewDataColumn Header="Added Date"  DataFormatString="{}{0:d}" />

When I change the value and move to other cell in SAME row 
the value is displayed like "11/16/2009"
but when i moved to some OTHER row 
the value changes to  "11/16/2009 12:00:00 AM"

I want to display just date, 11/16/2009. 
How can I get rid of TimePart of date?


Rgds
Alfa

1 Answer, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 18 Nov 2009, 03:35 PM
Dear Alfa Soft,

I have attached a sample project demonstrating default and formatted representation of the datetime. If your code looks similar to the sample you can check whether you are not cleaning your binding from code behind.

Please check the attached project and let me know how it goes.

Kind regards,
Tsvyatko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Alfa
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Share this question
or