This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-12-26 12:07:21

Kowalskz
New Scratcher
Registered: 2010-11-20
Posts: 20

Is there a date function?

Hi,

Is there something like today() in Scratch?
One of my programs need to use today's date in its calculations, but I am not sure how I can go about getting it, other than manually changing it.

The program calculates a person's age in days, months and years. I subtract the persons date of birth (yyyy - mm - dd) from today's date.

Thanks.

Offline

 

#2 2010-12-26 12:11:24

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: Is there a date function?

You can put in an ask block asking the player what today is, then setting the variable to their answer.


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#3 2010-12-26 12:13:37

ESN
New Scratcher
Registered: 2010-12-03
Posts: 100+

Re: Is there a date function?

You can also modify the code (If it isn't too advanced) and put in the code.

I think there is enough info to do that here.

Last edited by Paddle2See (2010-12-26 12:19:56)


http://is.gd/jZ5chhttp://is.gd/jZhXDhttp://is.gd/jZhU7

Offline

 

Board footer