Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DayOfTheYear 1

Status
Not open for further replies.

MLNorton

Programmer
Joined
Nov 15, 2009
Messages
134
Location
US
I am testing TheDayOfTheYear function with the following code in Delphi 7:

var
myDate : TDateTime;

begin
myDate := EncodeDate(2002, 10, 29);
ShowMessage('20/10/2002 day of year = '+
IntToStr(DayOfTheYear(myDate)));
end;
I get an error:

Undeclared inentifier: "DayOfTHeYear".

Other DateTime functions work.
 
Did you add

DateUtils

to your uses list?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top