Posted By

cdicarlo on 06/17/11


Tagged


Versions (?)

Leap Year Check


 / Published in: Other
 

  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  

You need to login to post a comment.