Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Working with Dates in VB.NET (http://www.velocityreviews.com/forums/t71683-working-with-dates-in-vb-net.html)

Justin Dutoit 01-28-2004 02:41 AM

Working with Dates in VB.NET
 
Hello. After looking at
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemdatetimememberstopic.asp
on msdn, I don't know how to set the Date of a datetime variable.
eg myDate.setDate(now)
or myDate.Date = now
Is there a reference teaching how to use dates in vb.net somewhere? I'm new
at dates, Thanks
Justin Dutoit



Kevin Spencer 01-28-2004 01:27 PM

Re: Working with Dates in VB.NET
 
You don't set the date, you assign it, like you would assign any other
variable value:

DateTime MyDate = DateTime.Now; // C#

Dim MyDate As DateTime = DateTime.Now ' VB.Net

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Justin Dutoit" <anon@anon.com> wrote in message
news:#Nb5DgU5DHA.1804@TK2MSFTNGP12.phx.gbl...
> Hello. After looking at
>

http://msdn.microsoft.com/library/de...us/cpref/html/
> frlrfsystemdatetimememberstopic.asp
> on msdn, I don't know how to set the Date of a datetime variable.
> eg myDate.setDate(now)
> or myDate.Date = now
> Is there a reference teaching how to use dates in vb.net somewhere? I'm

new
> at dates, Thanks
> Justin Dutoit
>
>





All times are GMT. The time now is 05:44 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57