C Sharp Program to Get Day Of The Week After Some Days - Yogeshkumar Hadiya

Introduction

In this blog we create a program which show the week name after the specific days. In this program we take input from user in number of days and then show the date and week day name by adding that days in current date.

C Sharp Program to Get Day Of The Week After Some Days — Yogeshkumar Hadiya
C Sharp Program to Get Day Of The Week After Some Days — Yogeshkumar Hadiya

Code

Output

C Sharp Program to Get Day Of The Week After Some Days — Yogeshkumar Hadiya
C Sharp Program to Get Day Of The Week After Some Days — Yogeshkumar Hadiya
C Sharp Program to Get Day Of The Week After Some Days — Yogeshkumar Hadiya
C Sharp Program to Get Day Of The Week After Some Days — Yogeshkumar Hadiya

Explanation

  • In above code first we take input from user and convert that input I integer.
  • Then we add that number of days in current date by AddDays method of DateTime data type.
  • Then we print current date and date after those days. For day of the week, we use DayOfWeek property of DateTime object.

View Other program of C Sharps

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
YogeshKumar Hadiya

YogeshKumar Hadiya

56 Followers

I am a software developer and designer work on .Net, .Net core , Angular and Ionic frameworks. Developer | Blogger | C# Corner MVP