Re: finding the day of the year
- From: Jud McCranie <youknowwhat.mccranie@xxxxxxxxxxxx>
- Date: Wed, 27 Jul 2005 16:44:46 -0400
On Thu, 28 Jul 2005 08:24:26 +1200, anthony <mrmclarge@xxxxxxxxxxx>
wrote:
>forgive me for being a bit dumb here, yes I have found the function and
>even found how to call it, I think this right
>DayOfTheYear(datetimepicker1.date); how do I get the result, where do I
>find that, Thank you for all your effort, I dont mean to bother you all
>but it's how I learn
uses controls, { for tDate}
DateUtils; { for DayOfTheYear }
var ThisDate : tDate; // or tDateTime
Then call DayOfTheYear(ThisDate) where ThisDate is the date you are
working with. The function returns an integer giving the day number
of the year (and it is correct for leap years, etc).
I think the DateUtils unit is only in Delphi 6 and later, but I'm not
certain about that.
---
Replace you know what by j to email
.
- Follow-Ups:
- Re: finding the day of the year
- From: anthony
- Re: finding the day of the year
- References:
- finding the day of the year
- From: anthony
- Re: finding the day of the year
- From: Jud McCranie
- Re: finding the day of the year
- From: Heinrich Wolf
- Re: finding the day of the year
- From: Jud McCranie
- Re: finding the day of the year
- From: anthony
- Re: finding the day of the year
- From: Jud McCranie
- Re: finding the day of the year
- From: anthony
- finding the day of the year
- Prev by Date: Re: finding the day of the year
- Next by Date: Re: finding the day of the year
- Previous by thread: Re: finding the day of the year
- Next by thread: Re: finding the day of the year
- Index(es):
Relevant Pages
|