PDA

View Full Version : todays year


dazpearce
02-22-2003, 03:52 PM
is there any built in variables that i can use to refer to the current year?
im trying to check a year input box to make sure someone doesnt put in 2004, for example

}else if (parseInt(yearText) > thisYear ){
feedback = "wrong year";
return(false);
can anyone help?

Ricod
02-22-2003, 10:29 PM
Well if you used the search engine, you might have found something like this : see the thread. (http://www.actionscript.org/forums/showthread.php3?s=&threadid=23217&highlight=year)

dazpearce
02-23-2003, 02:27 PM
thank you:o)

Ricod
02-23-2003, 05:38 PM
np, as long as you solved it ! :)