C# Sharp Exercises: Compute what day will be tomorrow
C# Sharp DateTime: Exercise-45 with Solution
Write a program in C# Sharp to compute what day will be tomorrow.
Sample Solution:-
C# Sharp Code:
using System;
class dttimeex45
{
static void Main()
{
Console.Write("\n\n Compute what day will be Tomorrow :\n");
Console.Write("----------------------------------------\n");
Console.WriteLine(" Today is : {0}", DateTime.Today.ToString("dd/MM/yyyy"));
DateTime dt = GetTomorrow();
Console.WriteLine(" The Tomorrow will be : {0} \n", dt.ToString("dd/MM/yyyy"));
}
static DateTime GetTomorrow()
{
return DateTime.Today.AddDays(1);
}
}
Sample Output:
Compute what day will be Tomorrow : ---------------------------------------- Today is : 12/06/2017 The Tomorrow will be : 13/06/2017
Flowchart:

C# Sharp Code Editor:
Improve this sample solution and post your code through Disqus
Previous:Write a program in C# Sharp to compute what day was yesterday.
Next: Write a program in C# Sharp to get the first day of the current year and first of a year against a given date.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.
- Exercises: Weekly Top 12 Most Popular Topics
- Pandas DataFrame: Exercises, Practice, Solution
- Conversion Tools
- JavaScript: HTML Form Validation
- SQL Exercises, Practice, Solution - SUBQUERIES
- C Programming Exercises, Practice, Solution : For Loop
- Python Exercises, Practice, Solution
- Python Data Type: List - Exercises, Practice, Solution
- C++ Basic: Exercises, Practice, Solution
- SQL Exercises, Practice, Solution - exercises on Employee Database
- SQL Exercises, Practice, Solution - exercises on Movie Database
- SQL Exercises, Practice, Solution - exercises on Soccer Database
- C Programming Exercises, Practice, Solution : Recursion