Friday, 19 March 2021

MVC - C# - Check if today is Friday (check todays day name)

 Watch this example on YouTube


         if (System.DateTime.Now.DayOfWeek == DayOfWeek.Friday)
            {
                // do somehting here
            }

No comments:

Post a Comment