Click or drag to resize
DateTimeHelperNumberOfWeeks Method (DateTime, DateTime, String)
Gets number of weeks in specified time interval.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public static int NumberOfWeeks(
	DateTime dateFrom,
	DateTime dateTo,
	string culture
)

Parameters

dateFrom
Type: SystemDateTime
Time from
dateTo
Type: SystemDateTime
Time to
culture
Type: SystemString
Culture

Return Value

Type: Int32
See Also