Groups | Blog | Home
all groups > asp.net > june 2003 >

asp.net : datetime class: setting day, month...


Ante Perkovic
6/28/2003 9:26:10 PM
Hi,

How to declare datetime object and set it to my birthday, first or
last day of this month or any other date.

I can't find any examples in VS.NET help!

BTW, what is the difference between date and datetime classes?

Please, help

Paul
6/29/2003 12:00:22 AM
In VB.NET...
Dim dtBirthday as DateTime = "6 November 1981 00:00"

I think the difference between the 2 classes are their precision. Date
class literally just holds the date (6 Novemebr 1981), whereas the DateTime
class holds (6 November 1981 13:42). I imagine imagine it's to do with how
much memory is reserved. I might be talking rubbish, it's just one of those
things I took for granted.

Paul
[quoted text, click to view]

AddThis Social Bookmark Button