To Format as dd/MM/yyyy is this.dgView.Columns["Inv/Ch Date"].DefaultCellStyle.Format = "dd/MM/yyyy"; To Format as dd/MMM/yyyy is this.dgView.Columns["Inv/Ch Date"].DefaultCellStyle.Format = "dd/MMM/yyyy"; To Format as dd-MMM-yyyy is this.dgView.Columns["Inv/Ch Date"].DefaultCellStyle.Format = "dd-MMM-yyyy";
select convert(varchar(20),Date_ColumnName,101) as [Date] from Database_Name
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)