Live Chat Icon For mobile
Live Chat Icon

What is the equivalent of date() and time() in ASP.NET

Platform: ASP.NET| Category: Basic

VB.NET


System.DateTime.Now.ToShortDateString()
System.DateTime.Now.ToShortTimeString()

C#


System.DateTime.Now.ToShortDateString();
System.DateTime.Now.ToShortTimeString();

Share with

Share on twitter
Share on facebook
Share on linkedin