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

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.