Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Random Dates

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,59619
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Random Dates
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Random Dates - 4/29/2008 1:20:29 PM   
  shahid09

 

Posts: 41
Score: 0
Joined: 1/22/2007
Status: offline
Hi All,

Is there any way i can generate ranom date using two dates as a range.

Like random date between 01/01/2008  to 04/04/2008

Thanks,
SK

 
 
Post #: 1
 
 RE: Random Dates - 4/29/2008 2:42:47 PM   
  TNO


Posts: 1064
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
Randomize

Dim Date1 : Date1 = CDate(Int((4 * Rnd) + 1) & "/" & Int((4 * Rnd) + 1) & "/2008")

MsgBox Date1

_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch

(in reply to shahid09)
 
 
Post #: 2
 
 RE: Random Dates - 4/29/2008 5:23:34 PM   
  ehvbs

 

Posts: 2065
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline

      

(in reply to TNO)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Random Dates Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts