Macromedia coldfusion 4.5-cfml language reference User Manual

Page of 608
328
CFML Language Reference 
<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>