Re: finding the day of the year
- From: anthony <mrmclarge@xxxxxxxxxxx>
- Date: Thu, 28 Jul 2005 10:19:34 +1200
Jud McCranie wrote:
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
this does not return the day number but rather the very date I sent it, Hell I must be a dummy, I can not see how to get the actual day number
.
- Follow-Ups:
- Re: finding the day of the year
- From: Jud McCranie
- 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
- Re: finding the day of the year
- From: Jud McCranie
- finding the day of the year
- Prev by Date: Re: finding the day of the year
- Next by Date: Re: Debugging an ISAPI application
- Previous by thread: Re: finding the day of the year
- Next by thread: Re: finding the day of the year
- Index(es):
Relevant Pages
|