JCL Help:DayOfTheYear@TDateTime

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the day of the year (1... 366) and optionally the year.


Pascal

 function DayOfTheYear(const DateTime: TDateTime; out Year: Integer): Integer; overload;
function DayOfTheYear(const DateTime: TDateTime): Integer; overload;


Parameters

Parameters Description
const DateTime: TDateTime The DateTime for which to retrieve the year and the number of the day in that year.
out Year: Integer (Optional) The year of the date.


Return Value

The function returns the number of the day in that year.


Description

Returns the day of the year (1... 366) and optionally the year.


See Also

DayOfTheYearToDateTime


About

Unit

JclDateTime


Donator

Michael Schnell


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page