ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Date and time functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns the day of the year corresponding to a given date.
New in version 2025
WEBDEV - Browser code This function is now available in browser code.
Example
dDate is Date
nDay is int
nDay = dDate.ToDayOfYear()
Syntax
<Result> = <Date>.ToDayOfYear()
<Result>: Integer
Number of the day of the year (between 1 and 366).
<Date>: Control name
Date to use. This date can correspond to:
  • a character string in YYYYMMDD format (YYYY corresponds to the year, MM to the month and DD to the day).
  • a character string in YYYYMMDDHHmmSSCC format (YYYY corresponds to the year, MM to the month, DD to the day, HH to hours, mm to minutes, SS to seconds and CC to hundredths of a second (use CCC for thousandths of a second)). In this case, only the date is taken into account.
  • a variable of type Date.
  • a variable of type DateTime. In this case, only the date is taken into account.
If this parameter is not specified, the current date is used.
Business / UI classification: Neutral code
Component: wd300std.dll
Minimum version required
  • Version 2024
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/10/2024

Send a report | Local help