From a date/time object, determines the week number within the year.
An integer in the range 1-53; the ordinal of the week, within the year.
Week(date)
Parameter |
Description |
|---|---|
date |
A date/time object in the range 100 AD-9999 AD. |
When passing date as a string, enclose it in quotation marks. Otherwise, it is interpreted as a number representation of a date.
<cfscript>
myDateTime = now();
WriteOutput(week(myDateTime & "<br/>"));
</cfscript>
Output
45
Sign in to your account