I am a bit lost on how to do this. I know how to initialize an array with values at the time of declaration. But how would I do it with a DateTime type array since it takes multiple arguments to create a date?
You mean like this?
DateTime[] dateTimes = new DateTime[]
{
new DateTime(2010, 10, 1),
new DateTime(2010, 10, 2),
// etc
};
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With