string minute = "15";
        string minute2 = "20";
        string minute3 = "27";
        string minute4 = "02";
        TimeSpan first = TimeSpan.Parse(minute);
        TimeSpan second = TimeSpan.Parse(minute2);
        TimeSpan Third = TimeSpan.Parse(minute3);
        TimeSpan fourth = TimeSpan.Parse(minute4);
        TimeSpan now = DateTime.Now.TimeOfDay;

        if (now == first|| now == second || now == Third || now == fourth)
        {
            //matched
        }
        else
        {

        }
    }

      is it correct what i have done in asp.net   because i am not geeting proper output
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.