I'm sorry, I'm a newbie trying to learn. I'm doing this in aspx using vb.net.
I have a date format like d/m/yyy like 4/27/2021 and all I want is to grab month and turn it into an integer.
Dim TestDate as string = Now().ToShortDateString
Dim GetMonth as int
How do I get GetMonth to show just 4?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.