Todays Date

  • Thread starter Thread starter Vayse
  • Start date Start date
V

Vayse

In VB6, I would have used Date()
That no longer works.

How do I find todays date in VB.net?
 
DateTime.Now

In VB6, I would have used Date()
That no longer works.

How do I find todays date in VB.net?
 
Vayse,

In addition to Siva, just 'Now"

I hope this helps,

Cor
 
Vayse said:
In VB6, I would have used Date()
That no longer works.

How do I find todays date in VB.net?

'Now' or 'DateTime.Now' (= 'Date.Now'). To determine the date component of
the 'Date' returned by 'Now' you can use 'Date''s 'Date' property:

\\\
Dim d As Date = Now.Date
///
 
Vayse,
In addition to the other Comments:

You can simply use DateTime.Today to get today's date with a zero for the
Time value.

--
Hope this helps
Jay
T.S. Bradley - http://www.tsbradley.net


| In VB6, I would have used Date()
| That no longer works.
|
| How do I find todays date in VB.net?
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top