![]() |
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 |
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.