xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

Week()

Calculates the numeric calendar week from a date.

Syntax

Week( [<dDate>] ) --> nWeekOfYear

Arguments

<dDate>
Any Date value, except for an empty date, can be passed. The default value is Date().

Return

The function returns a numeric value. It is the week number that includes <dDate>. If an invalid date is passed, the return value is zero.

Info

See also:Day(), Month(), WoM(), Year()
Category: CT:DateTime , Date and time
Source:ct\dattime2.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe