LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Loop that will generate dates from now to beginning of year (https://www.linuxquestions.org/questions/programming-9/loop-that-will-generate-dates-from-now-to-beginning-of-year-370273/)

mrobertson 10-06-2005 07:16 AM

Loop that will generate dates from now to beginning of year
 
I am working on a vb.net application in which I need to populate a listbox with dates starting with the current date (at the top) and add each date all the way back to 1/1(the last added date). Can anyone help me as to how I would set up a LOOP TO PERFORM THIS TYPE OF FUNCTIONALITY?

Wim Sturkenboom 10-06-2005 09:02 AM

Code:

get current date
convert to seconds since 1970
loop
{
subtract 24x60x60
convert to date
add to listbox
}

No idea for VB.net implementation


All times are GMT -5. The time now is 09:23 PM.