WeekOfYear()

 <  Day Day Up  >  

WeekOfYear()

Category: Date

Syntax: WeekOfYear ( Date )

Parameters: Date ”any valid date (1/1/0001 “12/31/4000). The parameter should be a string containing a date (for example, "3/17/2004" ), an expression with a date result (for example, Date (6, 29, 1969) ), or an integer that represents a serialized date value (for example, 718977 ).

Description: Returns the week number of the specified date. Weeks are defined as starting on Sunday and ending on Saturday. A partial week at the beginning of the year is considered as week 1, so the WeekOfYear() function can return values from 1 to 54.

Examples:

 

 WeekOfYear ("3/12/2004") 

Returns 11 .

 

 WeekOfYear ("12/31/2001") 

Returns 53 .

Comments:

WeekOfYear() can be used to return the approximate number of weeks between two dates in the same year. For instance, WeekOfYear("6/1/2001") - WeekOfYear("5/1/2001") returns 4.

January 1st of any given year is always part of week 1, no matter on what day of the week it falls .

 <  Day Day Up  >  


QUE CORPORATION - Using Filemaker pro X
QUE CORPORATION - Using Filemaker pro X
ISBN: N/A
EAN: N/A
Year: 2003
Pages: 494

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net