I'm relatively new to CF / Flex3 and I've been tasked with making mock applications in order to get my knowledge of the 2 languages up.
I'm creating an application where I require data back 1 week (strtotime equiv '-1 week').
So that the result is always 1 weeks worth.
Whats the comparable equivalent if any for coldfusion? If none, how would I accomplish this task? Just curious, I've searched but cannot find anything yet on this topic.
How I solved this (get data from 'last friday'):
<cfset lastweek = dateAdd("d", -(DayOfWeek(now()) + 1), now()) />
strtotime
Parse about any English textual datetime description into a Unix timestamp