Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Working with Dates in VB.NET

Reply
Thread Tools

Working with Dates in VB.NET

 
 
Justin Dutoit
Guest
Posts: n/a
 
      01-28-2004
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


 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      01-28-2004
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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RFC-822 dates into Ruby dates kellygreer1 Ruby 1 06-08-2008 10:59 PM
Need to use dates earlier than 1900 (Time library says out of range for dates < 1900) me@benjaminarai.com Ruby 1 07-17-2007 02:25 PM
FAQ Dates; Opera Dates. Dr J R Stockton Javascript 0 06-18-2007 03:51 PM
Dates dates dates dates... SQL and ASP.NET David Lozzi ASP .Net 1 09-30-2005 02:18 PM
Dates! Dates! Dates! PW ASP General 4 08-09-2004 04:42 PM



Advertisments
 



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