fnIsLeapYear() DESCRIPTION This function tests a four digit year and returns a boolean value depending on whether the year is a leap year or not. This is the age old function which has been written in probably hundreds of computer languages, well and badly, thoroughly and sloppily, enthusiastically and grudgingly, late at night and early in the morning, by near geniuses and by the slightly dim. And what has become of all their code? Where has it slipped to. All that effort and time and optimism. Here is my version. In the latest throwaway language available. (Not the latest anymore) I don't think this function does any gregorian calendar intricacies, as far as I can remember. SYNTAX bTest = fnIsLeapYear(iYear) EXAMPLE <%@ Language=VBScript %> <% Response.Buffer = true %> <% '-->-->-->-->-->-->-->-->--> dim bTest dim iCurrentYear iCurrentYear = 2000 bTest = fnIsLeapYear(iCurrentYear) Response.Write(bTest) '--<--<--<--<--<--<--<--<--< %> RESULTS False PARAMETERS iYear {number) -- the year to test STATUS working DEPENDENCIES PROGRAMMER Matthew Bishop LOCATION http://www.geocities.com/matth3wbishop/eg/asp/ DOCUMENTATION http://www.geocities.com/matth3wbishop/eg/asp/ COMMENTS: a) small utility function SEE ALSO LANGUAGE Microsoft Jscript