Hello. After looking at
http://msdn.microsoft.com/library/d...-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 DutoitYou 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/d...-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
0 comments:
Post a Comment