[Solved] C# 2D arrays calendar day in the month

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace calenderMonth1 { class Program { int[][] months; int day; static void Main(string[] args) { Program calendar = new Program(); calendar.Months(); calendar.ColRow(); calender.DisplayMonth(); } public void Display(int itr) { for (int i = 0; i < itr; i ++) { Console.WriteLine(); } } public enum … Read more

[Solved] how to write number of days in c# [closed]

Try to use DateTime.Now.DayOfWeek. Definition: namespace System { using System.Runtime.InteropServices; [Serializable, ComVisible(true), __DynamicallyInvokable] public enum DayOfWeek { [__DynamicallyInvokable] Friday = 5, [__DynamicallyInvokable] Monday = 1, [__DynamicallyInvokable] Saturday = 6, [__DynamicallyInvokable] Sunday = 0, [__DynamicallyInvokable] Thursday = 4, [__DynamicallyInvokable] Tuesday = 2, [__DynamicallyInvokable] Wednesday = 3 } } Example: // For your case Monday == 2 … Read more