Generic List

  • Thread starter Thread starter shapper
  • Start date Start date
S

shapper

Hello,

I have a generic list of a class where one of the properties is
PubDate (DateTime type).

I am looping through all the items in the generic list:

For Each item As MyClass In Items

Next

I need to check in each item if the DAY of its PubDate is different
from the DAY of the previous PubDate.

How can I do this?

Thanks,
Miguel
 
shapper said:
Hello,

I have a generic list of a class where one of the properties is
PubDate (DateTime type).

I am looping through all the items in the generic list:

For Each item As MyClass In Items

Next

I need to check in each item if the DAY of its PubDate is different
from the DAY of the previous PubDate.

How can I do this?

Thanks,
Miguel

Store the value in a variable, so that you can use it in the next
iteration of the loop.
 
Back
Top