Hi @RogerSchlueter-7899 ,
You can sort the Beginning
date in descending order by using Order By ... Descending
.
Concatenate the fields in the Select
clause to achieve the desired output format without adding extra characters like parentheses or the D =
, E =
format.
Dim result = From evnt In dtEvents.AsEnumerable
Where evnt.Field(Of Date)("Beginning") > Date.Now.Date
Order By evnt.Field(Of Date)("Beginning") Descending
Select evnt.Field(Of Date)("Beginning").ToString("MMM d") & ", " & evnt.Field(Of String)("Title")
Best Regards.
Jiachen Li
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.