Friday 19 March 2021

MVC - C# - Check if DateTime is today

 Watch this example on YouTube


            DateTime d = Convert.ToDateTime("1/1/2000");
            if (d != DateTime.Today)
            {
                // do something here.
            }

No comments:

Post a Comment