DateUtils.WeekSpan

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From DateUtils.pas

	function WeekSpan(const ANow: TDateTime; const AThen: TDateTime): Double;


Unit: DateUtils

Type: function

Visibility: public

C++ Information

From DateUtils.hpp

	double __fastcall WeekSpan(System::TDateTime ANow, System::TDateTime AThen);


Unit: DateUtils

Type: function

Description

Returns the number of weeks (including fractional weeks) between two specified TDateTime values.


Call WeekSpan to obtain the difference, in weeks, between two TDateTime values. Unlike the WeeksBetween function, which only counts whole weeks, WeekSpan reports incomplete weeks as a fraction of an entire week.

See Also

Code Samples


Personal tools
Translations
Newest Version