Getting Week, Month, And Year Dates Based On A Given Date In ColdFusion

<!---
	Get the year start date. These dates never change with
	exception of the year. The first date of the year will
	always be January 1st.
--->
<cfset dtYearStart = CreateDate(
	Year( dtToday ),
	1,
	1
	) />
 
 
<!---
	Get the year end date. These dates never change with
	exception of the year. The last date of the year will
	always be December 31st.
--->
<cfset dtYearEnd = CreateDate(
	Year( dtToday ),
	12,
	31
	) />
 
 
<!--- Output the dates: --->
Today: #DateFormat( dtToday )#<br />
Year Start: #DateFormat( dtYearStart )#<br />
Year End: #DateFormat( dtYearEnd )#<br />

For Cut-and-Paste