csharp การหาวันในสัปดาห์

DateTime dateValue = dateTimePicker1.Value.Date;

if (dateValue.ToString(“dddd”) == “Saturday” || dateValue.ToString(“dddd”) == “Sunday”)
{

///something

}

Add a Comment

Your email address will not be published. Required fields are marked *