Today's Date 
Author Message
 Today's Date

How do you get today's date (without time) from vb.net?

Thanks in advance
Julie Barnet



Sat, 22 Oct 2005 20:51:13 GMT  
 Today's Date
Hi

Use the now feature and use oDate.ToShortString

Cheers

Danny


Quote:
> How do you get today's date (without time) from vb.net?

> Thanks in advance
> Julie Barnet



Sat, 22 Oct 2005 21:05:55 GMT  
 Today's Date
Dim strDate as String = Now.ToShortDateString( )

HTH,
Jeremy

Quote:

> How do you get today's date (without time) from vb.net?

> Thanks in advance
> Julie Barnet



Sat, 22 Oct 2005 21:06:47 GMT  
 Today's Date

Quote:
> How do you get today's date (without time) from vb.net?

Dim d as date
d = Date.Now.Date

--
Armin



Sat, 22 Oct 2005 21:03:01 GMT  
 Today's Date
So many ways, here is another.

Dim d as String
d = Today.Date

Vince


Quote:
> How do you get today's date (without time) from vb.net?

> Thanks in advance
> Julie Barnet



Sun, 23 Oct 2005 00:15:29 GMT  
 Today's Date
error: "Implicit conversion from Date to string not allowed."
But:
dim d as date
d = today

should be the shortest one. :)

Armin


Quote:
> So many ways, here is another.

> Dim d as String
> d = Today.Date

> Vince



> > How do you get today's date (without time) from vb.net?

> > Thanks in advance
> > Julie Barnet



Sun, 23 Oct 2005 02:04:08 GMT  
 Today's Date
Hello,


Quote:
> dim d as date
> d = today

> should be the shortest one. :)

"Dim d As Date = Today" is shorter.

;-)))

Regards,
Herfried K. Wagner



Sun, 23 Oct 2005 05:53:21 GMT  
 Today's Date

Quote:
> > dim d as date
> > d = today

> > should be the shortest one. :)

> "Dim d As Date = Today" is shorter.

> ;-)))

Yes, but I don't like it.  :)

--
Armin



Sun, 23 Oct 2005 06:03:21 GMT  
 Today's Date
Turn off option strict, else do the conversion.


Quote:
> error: "Implicit conversion from Date to string not allowed."
> But:
> dim d as date
> d = today

> should be the shortest one. :)

> Armin


> > So many ways, here is another.

> > Dim d as String
> > d = Today.Date

> > Vince



> > > How do you get today's date (without time) from vb.net?

> > > Thanks in advance
> > > Julie Barnet



Sun, 23 Oct 2005 06:20:57 GMT  
 
 [ 9 post ] 

 Relevant Pages 

1. Selecting Today's Date With Sheridan Date Combo

2. Adding a variable number of weeks to today's date

3. Getting today's date.....

4. Returning today's date

5. Accessing today's date in a filter

6. Inserting today's date

7. Viewing today's date

8. getting today's date

9. Automatically selecting *today's* date - MonthView control

10. How to subtract a value from today's date

11. Filter on Today's Date

12. Get today's date

 

 
Powered by phpBB® Forum Software