0
I need to convert "date and time" to "date" in C#, keeping the Datetime format (without converting to string).
In the code, I am converting an object to datetime, but I need to remove its time also to present in a DataGridTextColumn
.
t.DataDeContrato = Convert.ToDateTime(row.ItemArray[6]);
Possible duplicate of Remove the time part of a date in c#
– Italo Rodrigo
@Italorodrigo, apparently, did not read the question or the comments.
– user75204
Relax, if I’m confused, the moderators will ignore my signage
– Italo Rodrigo
Even though I didn’t read it right, he accepted the answer with the same solution as the question I cited as duplicate...
– Italo Rodrigo
@Italorodrigo, Tobias Mesquita commented on the correct answer in the comments. Just read it... the problem was in XAML. Really, not read it right.
– user75204