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

Date & Time?

P: n/a
LL
Hi,

How to get the current Date & Time?

Date() & Time() ?

Thanks.
Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
LL,
Have you tried either the System.DateTime.Now() or System.DateTime.Today()
static functions. That returns the current date & time and the current date
respectively?

DateTime has a TimeOfDay that you can use to extract the time from a
DateTime.

Hope this helps
Jay

"LL" <li*******@hotmail.com> wrote in message
news:uz**************@tk2msftngp13.phx.gbl...
Hi,

How to get the current Date & Time?

Date() & Time() ?

Thanks.

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.