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" <> wrote in message
news:#...
> 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
>
>