I defined a two dimensional array like that
Dim dates As DateTime(,) = {}
How can I put two dates into it? Thank you.
CodePudding user response:
It is possible. People can be unhelpful and unfriendly on here, forgetting that they were inexperienced programmers at one time too. Take the time to read up here: https://docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/language-features/arrays/how-to-initialize-an-array-variable
Dim Dates(,) As Date = {
{New Date(2000, 1, 1), New Date(2001, 1, 1)},
{New Date(2000, 1, 2), New Date(2002, 1, 1)}
}