Returns the year, week of the year, and day of the week for a specified TDateTime value object.
procedure DecodeDateWeek(const AValue: TDateTime; out AYear: Word; out AWeekOfYear: Word; out ADayOfWeek: Word);
DecodeDateWeek(const TDateTime AValue, Word AYear, Word AWeekOfYear, Word ADayOfWeek);
DateUtils
DecodeDateWeek returns the day of the week and week of the year for a specified date/time value, along with the year in which that day and week occur.
AValue is the date/time value about which you want information.
AYear returns the year that AValue represents.
AWeekOfYear returns the week within AYear that AValue represents, where 1 is the first week with four or more days.
ADayOfWeek returns the day within AWeekOfYear that AValue represents, where 1 Monday and 7 is Sunday.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|