How to display day month year only in datatable column
LINQ
3
Posts
3
Posters
6
Views
1
Watching
-
i have datatable contain id name ,date (smalldatetime) i want to fill gridview by this datatable but in date columns display only daymonthyear
Hi, Take records to a list. Inside a for loop assign ony date component to the date field.
-
Hi, Take records to a list. Inside a for loop assign ony date component to the date field.
if you are using a BoundColumn control within your gridview you should be able to use the following method to help you: DataFormatString="{0:MM/dd/yyyy}".