Format DateTime field in dd/MM/yyyy format in ASP.Net GridView


DateTime formatting using BoundField

IdNameBirth Date
1John Hammond01/12/1975
2Mudassar Khan25/02/1985
3Suzanne Mathews23/03/1992
4Robert Schidner15/01/1982

DateTime formatting using TemplateField

IdNameBirth Date
1John Hammond 01/12/1975
2Mudassar Khan 25/02/1985
3Suzanne Mathews 23/03/1992
4Robert Schidner 15/01/1982

© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.