Used to be able to do this
myDay = day(date())
myMth = month(date())
myYr = year(date())
so how do u do the same in vb.net 2k3
Printable View
Used to be able to do this
myDay = day(date())
myMth = month(date())
myYr = year(date())
so how do u do the same in vb.net 2k3
You may want to check out DateTime.Parse:
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconparsingdatetimestrings.htm
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfSystemDateTimeClassParseTopic.htm
Not sure if this is what you want:
intDay = DateTime.Now.Day
intMonth = DateTime.Now.Month
intYear = DateTime.Now.Year