SfDataGrid control allows you to group a column with DateTime data, however it will display the entire DateTime value including the time part in its cells, like in the following screenshot.
If you do not want to display the time part of the DateTime object then apply Format to the corresponding column. Refer the below code example.
In the following screenshot note that only the date part is displayed for the ShippingDate column.
The following screenshot shows the final outcome upon execution of the above code
Since we have returned a string value in the converter, the groups are sorted considering the GroupKey values as string. If you want to sort the groups considering it to be DateTime value then you need to write a SortComparer for it.
Refer the following code example to create a custom SortComparer
The following screenshot shows the final outcome without time and proper sort order
This page will automatically be redirected to the sign-in page in 10 seconds.