c# datetime get number of week
using System.Globalization
ISOWeek.GetWeekOfYear(DateTime date);
c# datetime get number of week
using System.Globalization
ISOWeek.GetWeekOfYear(DateTime date);
how to validate if date is a weekday or weekend c#
DayOfWeek today = DateTime.Today.DayOfWeek;
if (today == DayOfWeek.Sunday || today == DayOfWeek.Saturday)
{
ClientScript.RegisterStartupScript(GetType(), "alert", "alert('" weekend"');", true);
}
else
{
ClientScript.RegisterStartupScript(GetType(), "alert", "alert('" weekday"');", true);
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us