I have a datetime on my MSSQL table that I'm trying to get.
Originally, I had this:
reader.GetDateTime(ordinals.DateBirth);
It works fine, however It's taking the time as well. If I add "Date" at the end, It will put everything to 12:00:00 (midnight). and If I add ToShortDateString, nothing really happens, I can see the same result.
What I want to achieve basically is to get the Date only while keeping it a DateTime type.
Convert.ToDateTime(reader.GetDateTime(ordinals.DateEtabDrc).Date.ToShortDateString());