Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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;
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #hour #dropdown #list
ADD COMMENT
Topic
Name
8+9 =