By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,056 Members | 1,296 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,056 IT Pros & Developers. It's quick & easy.

Datetime - how to get that

P: n/a
How do I get the current date and time ?
Sep 28 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
DateTime.Now

DateTime.Now.ToString("dd-MMM-yy");

and so on...

--
Robbe Morris - 2004-2006 Microsoft MVP C#
I've mapped the database to .NET class properties and methods to
implement an multi-layered object oriented environment for your
data access layer. Thus, you should rarely ever have to type the words
SqlCommand, SqlDataAdapter, or SqlConnection again.
http://www.eggheadcafe.com/articles/..._generator.asp

"Alan T" <al*************@yahoo.com.auwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
How do I get the current date and time ?

Sep 28 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.