Generic List

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
 
?

=?ISO-8859-1?Q?G=F6ran_Andersson?=

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top