328
<P>Using datepart, we can extract an integer representing
the various dateparts from that value
<CFOUTPUT>
<UL>
<LI>year: #DatePart("yyyy", todayDate)#
<LI>quarter: #DatePart("q", todayDate)#
<LI>month: #DatePart("m", todayDate)#
<LI>day of year: #DatePart("y", todayDate)#
<LI>day: #DatePart("d", todayDate)#
<LI>weekday: #DatePart("w", todayDate)#
<LI>week: #DatePart("ww", todayDate)#
<LI>hour: #DatePart("h", todayDate)#
<LI>minute: #DatePart("n", todayDate)#
<LI>second: #DatePart("s", todayDate)#
</UL>
</CFOUTPUT>
</BODY>
</HTML>
CFML Language Reference
Need help?
Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?
Questions and answers