[fpc-pascal] WeekDay outdated?
    Howard Page-Clark 
    hdpc at talktalk.net
       
    Mon Aug 13 11:17:24 CEST 2012
    
    
  
On 13/8/12 9:56, Jürgen Hestermann wrote:
>> I am not able to use this function:
>>> http://www.freepascal.org/docs-html/rtl/dos/weekday.html
>>> nor can I find it in the sources.
>>> Does it still exist?
>>> If yes, how to use it? Which unit? DOS does not work.
>> You will find what you need at unit dateutils.
>
> When I add dateutils to my units Weekday isn't found either (I already
> tried this yesterday).
Sysutils has an integer DayOfWeek function, and dateutils has a word 
DayOfTheWeek function.
Both take a TDateTime parameter (rather than the separate year, month, 
day parameters of the old dos unit).
Howard
    
    
More information about the fpc-pascal
mailing list