Thursday, April 30, 2009

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

VB.NET
System.DateTime.Now.ToShortDateString()
System.DateTime.Now.ToShortTimeString()
C#
System.DateTime.Now.ToShortDateString();
System.DateTime.Now.ToShortTimeString();

No comments:

Post a Comment