Click here to Skip to main content
13,248,927 members (44,324 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Dear all,

I am stuck at a place where i need to print all the dates existing in a range. For eg., 2004 to 2009.

My output should be like 2004, 2005, 2006, 2007, 2008, 2009.
Posted 19-Dec-12 19:50pm
VitorHugoGarcia 20-Dec-12 7:56am
No question asked.
Do you think we can figure out what you want with what you state ? I can't.
So please improve question...

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Oh Dear...

You need to learn so much...

I don't know what you exact want to do, but it looks like you need to use For...Next[^] loop.
Dim i as Integer = 0
For i = 2004 to 2009
    Msgbox (i.ToString())

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171114.1 | Last Updated 13 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100