Knowledge Base

Snippets

19

Get the date and time in C#

 

vDate = Convert.ToString(System.DateTime.Today.Date.ToShortDateString());

vTime = Convert.ToString(System.DateTime.Now.ToShortTimeString());

Posted in: C Sharp - C#

Post Rating

Comments

There are currently no comments, be the first to post one!

Post Comment

Name (required)

Email (required)

Website