Mozier's weblog

<cfweblog author="Mozier" attention="ColdFusion,BlueDragon,CFML,Model-Glue,Mach-ii,etc" />
  订阅 订阅  :: 管理

呵呵,日期也可以循环~

Posted on 2004-08-20 22:46  Mozier  阅读(506)  评论(0编辑  收藏  举报

<cfset startDate= "2004/08/01">
<cfset endDate = "2004/09/01">
<cfloop from="#startDate#" to="#endDate#" index="i">
  <cfoutput>
  #DateFormat(i, "yyyy/mm/dd")#<br />
  </cfoutput>
</cfloop>

Via John Bs personal Blog