Software Development Network>> Visual Basic>> Picking out the year
Can anyone tell me how to pick out the 4 digit year from a date
I'm using VB.Net 2003
thanks
tattoo
or just get the Year property:
date.Year
which will return the 4 digits of the current year
date.ToString("yyyy")
http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconcustomdatetimeformatstrings.asp
Picking out the year
hadjici2
or just get the Year property:
date.Year
which will return the 4 digits of the current year
KissedNunueng
date.ToString("yyyy")
http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconcustomdatetimeformatstrings.asp