By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,296 Members | 1,457 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,296 IT Pros & Developers. It's quick & easy.

Program To Find The Date That Comes After N Days From Todays Date

P: 1
I Need A C Program To Find The Date That Comes After N Days From Todays Date
Sep 12 '07 #1
Share this Question
Share on Google+
1 Reply


gpraghuram
Expert 100+
P: 1,275
I Need A C Program To Find The Date That Comes After N Days From Todays Date
Hi,
Use this idea to write the code
1)Get the clock tick using time function
2)From current tick count add (no_of days *86400) to get the expected days tick count
3)Then from the tick count you can get the expected date in dd/mm/yyyy format

Thanks
Raghuram
Sep 12 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.