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

2nd Nov 2020, 7:46 PM
Reshma sayyed
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"
2nd Nov 2020, 9:51 PM
hossein B
hossein B - avatar