Retrieve Date in GridView By dd/MM/yyyy Format In ASP .Net C#


<asp:GridView ID="gridexport" runat="server" AllowPaging="True"  visible="true"
          AllowSorting="True" AutoGenerateColumns="False" EmptyDataText="No Records" 
                                                      OnPageIndexChanging="view_PageIndexChanging" >
                <Columns>
                    <asp:TemplateField HeaderText="Date">
                        <ItemTemplate>
                            <%# DataBinder.Eval(Container.DataItem, "attdate""{0:dd-MM-yyyy}")%>
                        </ItemTemplate>
                    </asp:TemplateField>
         </Columns>
     </asp:GridView>

Comments

Popular posts from this blog

Unable to perform operation on the item is locked in workspace

Maximum Stored Procedure Function Trigger or View Nesting Level Exceeded (limit 32) in SQL Server

Insecure cookie setting: missing Secure flag