Posted By


cdicarlo on 06/17/11

Tagged


Statistics


Viewed 548 times
Favorited by 0 user(s)

Leap Year Check


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. local numbervar y := year(<DATE/TIME_FIELD_NAME>);
  2.  
  3. if (y mod 400 = 0) then
  4. true
  5. else if(y mod 100 = 0) then
  6. false
  7. else if(y mod 4 = 0) then
  8. true
  9. else
  10. false;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.