PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Returns the date of the first day of the year.
Versions 22 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
WEBDEV - Server codePHP This function is now available for the PHP sites.
New in version 22
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
WEBDEV - Server codePHP This function is now available for the PHP sites.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
WEBDEV - Server codePHP This function is now available for the PHP sites.
Example
// Displays the customers created since the beginning of the year
HReadFirst(Customer, Name)
WHILE HOut() = False
// Process the record
IF (Customer.CreationDate >= FirstDayOfYear()) THEN
Trace(Customer.Name)
END
HReadNext(Customer, Name)
END
Syntax

Finding out the first day of the year from a date Hide the details

<Result> = FirstDayOfYear([<Date>])
<Result>: Character string or Date variable
First day of the year (in YYYYMMDD format) for the specified date.
<Date>: Optional character string or optional Date variable
Date (in YYYYMMDD format) for which the first day of the year must be calculated.
If this parameter is not specified, today's date is used by default.

Finding out the first day of the year from a year Hide the details

<Result> = FirstDayOfYear(<Year>)
<Result>: Character string or Date variable
First day of the year (in YYYYMMDD format).
<Year>: Integer
Year for which the first day is sought.
Remarks
This function is used to easily calculate ranges of dates.
Related Examples:
Management of dates Unit examples (WINDEV): Management of dates
[ + ] Using the Date type of WLanguage and the functions for handling dates.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Windows Mobile wp230std.dll
Java wd230java.jar
Linux wd230std.so
Android wd230android.jar
Minimum required version
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment