I need help on my DataGridView column date format. I want the date to be \"MM/dd/yyyy\". I dont need the time.
How can this be done programmatically?
Make sure that the date stored in the database is in DateTime or Date DataType.
If the datatype of that field is not datetime or date then it could not be formatted using that format. Either convert the datatype into datetype in table schema or convert the date in sql query.
Select Cast(entry_datetime As DateTime)...
If the field datatype is datetime and still it is showing that result then you can format the date in your sql query directly.
Select CONVERT(VARCHAR(10), entry_datetime, 101) As EntryDate,....