LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-06-2005, 07:16 AM   #1
mrobertson
Member
 
Registered: May 2005
Posts: 275

Rep: Reputation: 30
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?
 
Old 10-06-2005, 09:02 AM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Code:
get current date
convert to seconds since 1970
loop
{
subtract 24x60x60
convert to date
add to listbox
}
No idea for VB.net implementation
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file dates digitalgravy Linux - General 2 01-20-2005 10:58 AM
File Dates Rv5 Programming 5 09-07-2004 05:59 PM
File dates. vexer Programming 5 04-28-2004 12:14 AM
php and mySQL dates before a sudden year go wrong??? Satriani Linux - Software 2 04-29-2003 03:13 AM
problems with dates barkers Linux - General 1 04-30-2002 06:28 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration