Title: Dateformat wierdness

Hi, this is weird

I have an array with the following dates
Apr-03
Jul-03
Oct-03
Jan-04

I put them into a list using arraytolist (cause i'm appending it to a CSV file and its easier).
<cfset dList=#arraytolist(datearr)#>

Which gives me:
Apr-03,Jul-03,Oct-03,Jan-04

I then create a new list and loop over #dList# to create a list with formatted dates

<cfset dList2="">
<cfloop index="i" list="#dlist#">
<cfset dList2 = listappend(dList2, dateformat(i,"mm yyyy"))>
</cfloop>

But if I then output dList2 I get
April 2004,July 2004,October 2004,January 2004

All the years have been change to 2004!  But if I output #i# in the loop it leaves the years unaltered, it looks like listappend is throwing a spanner in the works

Anyone see anything i'm doing wrong or is it a bug?

Thanks
Mark


Reply via email to