Programming for Everybody: datetime format in asp.net gridview

datetime format in asp.net gridview

 Solution
  <asp:boundfield datafield="date_birth" dataformatstring="{0:dd/MM/yyyy}"
                    HeaderText="Date of Birth" htmlencode="false" SortExpression="date_birth">
                <ItemStyle Width="100px" />
                </asp:boundfield>

No comments:

Post a Comment