Source language: Translate to:

Next day

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Next day

Postby Alex » Sun Sep 25, 2011 9:20 am

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
Alex
 
Posts: 745
Joined: Sat Mar 04, 2006 4:53 am

Re: Next day

Postby andybrock » Sun Sep 25, 2011 10:56 am

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
User avatar
andybrock
 
Posts: 181
Joined: Mon Apr 20, 2009 1:38 pm
Location: Somerset, UK

Postby Pilou » Sun Sep 25, 2011 11:34 am

Bonsoir alex

Voir ici

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

pilou
User avatar
Pilou
 
Posts: 545
Joined: Sun Oct 16, 2005 4:17 pm

Postby Alex » Sun Sep 25, 2011 11:40 am

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
Alex
 
Posts: 745
Joined: Sat Mar 04, 2006 4:53 am

Postby Alex » Sun Sep 25, 2011 11:49 am

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
Alex
 
Posts: 745
Joined: Sat Mar 04, 2006 4:53 am


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 2 guests