Hello world! I'm talking about how to find the season from the month [date]. I have a date time picker. I didn't change the name of it because there's one. One of them here if I had to maybe to start date and end date I might Give them better names. I have lblInstruction. lblSeason. And pixSeason. When I run it I can pick a date March 17th. Is winter. But March 26th is spring. So I'm not just doing this saying that certain months are the spring and certain months are the summer I'm using actual. First day of spring and so on. Let's pick something. July. Let's go to... November. November is in the fall. And December 16th is in the fall. But December 24th is winter. Let's look at the code. The first day of spring is March 19th. The first day of summer is June 20th. for fall, it's September 22nd. And winter is December 21st. I'm going to. Represent these numbers To make it simpler to Find where a particular date belongs, I'm going to make this an integer. I'm going to get an integer by taking the number of the month which is three. And multiply it by 100 and add 19. So for the first day of the seasons. March 19th is represented by 319. June 20th. Become 620. September is the 9th month. So we have 922. And December 21st becomes 1221. And then I've added just a big number at the end so when I loop through the array, I don't have to worry about my my index being out of bounds. When I get down here. And I have my season names are winter, spring, summer, fall,and winter. And the reason I have winter twice. Is because this first one, Is the one that's going to come up for dates from January 1st. up to March 18th. And the second one is for dates after December 21st So this is just going to make it a little easier to search through this. I'm in a function, so I called this function. I got the date off the date time picker. Call findSeason with that date. So this is date up here. And I have the lookupDate is date.Month * 100. Plus date.Day So let's just make an example. And today is March 26th so I'm going to say that if I had selected March 26th that look up date number would be 326. I put this statement in just for testing. And I've commented it out because I don't need. I'm going to use a do loop And loop through this to find where 326 belongs. You can see 326 falls somewhere between 319 and 620. Let's see how that works. So I start the seasonIndex. to - 1. I have my do loop. And I add 1 to it each time through. Show the first time trrough. sesonIndex index right now is zero. lookupDate is 326. Is that greater than or equal to 319? Yes, that's greater. So I come back around. I add one to that index. Which now becomes one. And I am saying. lookupDate, which is 326. Is greater than or equal to. seasons[1]. That is false. And so I drop out of that loop. And I say: season equals seasonNames. [seasonIndex] which is one. And that makes it spring. And you could experiment with this, you could try some other dates, try a December date, and so on. Test it! You could do that. I display the name of the season and then I'm also going to Show the picture. And I'm getting that Image from my Local directory. Once at the top that's the system path that's my program where this is running. And I have. pictures. in that Debug directory, of each of the seasons . png. And then just for fun I also changed the backcolor and I used a switch for that. I could have made an array of the colors. If I did make an array of colors I would put in winter twice. But you can experiment with that on your own. That's it!