I'm working on my graduation project and within it i need a function gives me random ID numbers and random dates since 2008,01,01 untill now .. I'm done with the ID numbers but i couldnt find a solution for the dates .. how can I do this ????
Nada403
0
Newbie Poster
Recommended Answers
Jump to PostWhat came to my mind when I see your question is to generate day number (1, 31) - Month (1,12) - year* (1900, 2009)
Say this method GenerateDate
Write method to CheckIsValidDate(day, month, year)
because it may you have 31-2-2008 which is wrong date. if CheckIsValidDate returns false call GenerateDate …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.