function leapYear(year)
{
return ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0);
}
More Related Contents:
- new Date(2015,2,30) and new Date(‘2015-2-30’)
- How do I format a date in JavaScript?
- Calculate age given the birth date in the format YYYYMMDD
- How do I get the difference between two Dates in JavaScript?
- Convert UTC Epoch to local date
- How to validate date with format “mm/dd/yyyy” in JavaScript?
- Calculate last day of month
- Javascript: how to validate dates in format MM-DD-YYYY?
- How to convert dd/mm/yyyy string into JavaScript Date object?
- Get time difference between two dates in seconds
- How to check whether an object is a date?
- How to add/subtract dates with JavaScript?
- Javascript format date / time [duplicate]
- javascript Date timezone issue
- Get the current year in JavaScript
- JavaScript – get array element fulfilling a condition
- Javascript library for human-friendly relative date formatting [closed]
- Get week of the month
- Convert normal date to unix timestamp
- why does javascript getMonth count from 0 and getDate count from 1?
- Date difference in Javascript (ignoring time of day)
- Javascript countdown using absolute timezone?
- How do I get a timestamp in JavaScript?
- Why does Javascript getYear() return a three digit number?
- Date.toISOString() but local time instead of UTC
- Elegant method to generate array of random dates within two dates
- Javascript date parsing on Iphone
- create javascript date UTC
- Javascript Date Plus 2 Weeks (14 days)
- Making a live clock in javascript