PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Your version: 01A240075T (WINDEV 24)

Home | Sign in | English UK
New WINDEV, WEBDEV, WINDEV Mobile 24 feature!
The content of this page has been updated in version 25. View 25 version documentation now.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Indicates whether the specified year is a leap year or not.
Reminder : a leap year is a year containing 366 days instead of 365 days for a non-leap year. The additional day is February 29.
Example
// Indicates whether it's a leap year
IF LeapYear() THEN
Info("It's a leap year.")
END
Syntax
<Result> = LeapYear([<Date>])
<Result>: Boolean
  • True if the year is a leap year,
  • False otherwise.
<Date>: Optional character string or integer
Date for which we want to know whether it corresponds to a leap year. This parameter can correspond to:
  • a date or a year in character string format,
  • a date, a DateTime or a year in integer format.
If this parameter is not specified, the current year will be handled.
Note: The year must be included between 0 and 9999.
Component : wd240std.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Video LeapYear
https://youtu.be/EygrUpTh-9I
https://windevdesenvolvimento.blogspot.com/2019/07/dicas-2213-windev-webdev-mobile.html
//
IF LeapYear(EDT_DATA_DESEJA) THEN
Info("ANO BISSEXTO")
ELSE
Info("ANO NAO É BISSEXTO")
END
amarildo
23 Jul. 2019