0
I want program in c# like user input month and year if it has Friday on 13 on that month then it will show yes else no pls help
Given the month and year as number check whether that month contain Friday 13, January as 1 Ann so upto 12 month
1 Antwort
+ 2
1. Use DateTime
var date1 = new DateTime(2018, 5, 13);
2. Use DateTime format
string day = date1.ToString("dddd" );
3. Check day =="Friday"