Answers for "c# half hour dropdown list"

C#
0

c# half hour dropdown list

static void DisplaySlots(string format, TimeSpan slotLength, int slots)
{
    DateTime time = DateTime.Today;
    for (int i = 0; i < slots; i++)
    {
        Console.WriteLine(time.ToString(format));
        time = time + slotLength;
    }
}
Posted by: Guest on June-15-2020

C# Answers by Framework

Browse Popular Code Answers by Language