Age calculation algorithm

#[member='systembuilder'], sorry mate, but this too have bugs, try 29/03/2011, you will get months in negative
<
 
#[member='systembuilder'], sorry mate, but this too have bugs, try 29/03/2011, you will get months in negative
<

come on dude, thats just another case. Cant you modify the code yourself to accommodate all these scenarios ? I was just trying to give you the logic/algo, not the exact code. I dont think it will be much hard now, Give it shot. e are not supposed to give you the complete code anyway. If you want i can modify the code for you, but i dont think that will help you in long run.
<
 
The problem with that date is the year isn't leap year.

Pseudo-code would be

If(year%4==0)

{

Accept.date()

No_of_days==366

}

else

{

Show.error()

29/02/2011 is invalid date

}

Please note this isn't actual code.
 
Back
Top