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?
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?