Page 1 of 1

Next day

PostPosted: Sun Sep 25, 2011 9:20 am
by Alex
Hi,

I am trying to make a code that can give me the date for day+1. For example: today it is the 09/25 if I run the code, it is avaible to give me the next day 09/26 or if I want to know in 7 days, then it will gives 10/02...

How it is possible?

Thanks


Alex

Re: Next day

PostPosted: Sun Sep 25, 2011 10:56 am
by andybrock
Alex wrote:Hi,

I am trying to make a code that can give me the date for day+1. For example: today it is the 09/25 if I run the code, it is avaible to give me the next day 09/26 or if I want to know in 7 days, then it will gives 10/02...

How it is possible?

Thanks

Alex


Use DatetoNum to convert to a number, add 1 to the number and convert back with NumtoDate.

Andy

PostPosted: Sun Sep 25, 2011 11:34 am
by Pilou
Bonsoir alex

Voir ici

http://neofrbook.free.fr/crbst_32.html

pilou

PostPosted: Sun Sep 25, 2011 11:40 am
by Alex
Hi,

Thanks, but if it is 31, how can it knows that it has to go to the 1 and not 32? And how to do to change month?

Thanks


Alex

PostPosted: Sun Sep 25, 2011 11:49 am
by Alex
Hi,

Sorry, I made a mistake, this works very good thanks, I just tested an other code and I got an other result, but I got a bug.

Thank you very much.


Alex