Display Day of a Date C Program

By | August 27, 2016
 

C Program To Display Day of a Date

Learn how to display day of a date in C Programming language. This C code makes use of Switch case to find the day of the week associated to a date. This program does not use any library functions nor any user defined functions.

Must Read: C Program To Find System Date and Time

C Program To Display Day From A Date using Switch Case

 

Must Read: C Program To Check if a Number is a Strong Number or Not

 

Output

C Program To Display Day From Any Date using Switch Case

If you have any doubt or compilation error in this C Code to Find Day of the Week on a given Date, let us know about it in the comment section.

11 thoughts on “Display Day of a Date C Program

  1. Vishal Mehta

    What a fantastic piece of code. This is just so easy to find the day of the week without using any functions.

    Reply
  2. Gurpreet Chahal

    I have not seen such an easy algorithm for finding the day of a given date in C programming. It is so easy.

    Reply
  3. Gurpreet Chahal

    I have not ever seen such an easy code finding the day of a given date in C programming. It is such an easy yet complex code.

    Reply
  4. manju zalaki

    please explain the code or else explain me logic and math I am not getting

    Reply
  5. Anonymous

    Can you explain wt is case 1: month =1; in the same way of 12 month values??

    Reply
  6. Jyothsna Vidavaluru

    Hi, Nice code. There is no 29th feb in 2018 (since this is not a leap year). But this is displaying as Thursday

    Reply
  7. Shivam Singh

    What is Logic behind these no’s which are assigned to months in switch case. Please Do Share the logic behind it

    Reply

Let's Discuss