Randy Posted March 3, 2006 Share Posted March 3, 2006 [code]Date = new Date();Year = parseFloat(Date.getYear());if((round((Year+1900)/4)) == ((Year+1900)/4)){ leap = 29;}else{ leap = 28;}[/code]something seems to be wrong, i don't really know what...thanks in advance Quote Link to comment Share on other sites More sharing options...
fusionpixel Posted March 6, 2006 Share Posted March 6, 2006 It is Math.round instead of just round.[code]Date = new Date();Year = parseFloat(Date.getYear());if((Math.round((Year+1900)/4)) == ((Year+1900)/4)){ leap = 29;}else{ leap = 28;}[/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.