Answers for "c# add time to datetime"

C#
0

c# datetime add

DateTime date = DateTime.Now;
TimeSpan time = new TimeSpan(36, 0, 0, 0);
DateTime combined = date.Add(time);
Posted by: Guest on July-01-2021
0

c# add time to datetime

DateTime date; // The input time
date.AddSeconds(timeInSeconds);
date.AddMinutes(timeInSeconds);
// etc etc
Posted by: Guest on October-16-2021

C# Answers by Framework

Browse Popular Code Answers by Language