I'm trying to populate a DGV with a Data Table that's filled with some information from a MySQL database, but it isn't returning the time along with the date. When I put my Select Statement into MySQL Workbench it does show the time and date. When I put the same Select statement into my Visual Studio C# app it only shows the date.
The startTime is type DateTime it's inserted into the table in the format '2021-01-01 00:00:00'.
And my select statement looks like this.
select name as 'Name', custID as 'Customer ID', startTime as 'Start Time' from customer join appointment using (custID);
In mySQL workbench the Start Time column will appear with 2021-01-01 00:00:00. In the DGV it appears as just 1/1/2021.