I am retrieving data from an iSeries where there is a separate date and time fields. I want to join them into a DateTime field in my C# project. I don\'t see a way to add ju
You can do this quite easily:
DateTime dateOnly; DateTime timeOnly; ... DateTime combined = dateOnly.Date.Add(timeOnly.TimeOfDay);
TimeOfDay returns a TimeSpan, which you then add to the date.
TimeOfDay
TimeSpan
Edit (thanks to commenters below) - to be safe, use dateOnly.Date to ensure the date part only.
dateOnly.Date