I am relatively new to CF / Flex3, and I was tasked with creating mock applications to learn about two languages.
I am creating an application where I need data for 1 week (strtotime equiv '-1 week').
So, the result is always worth 1 week.
What is the equivalent equivalent if it exists for coldfusion? If not, how would I accomplish this task? Curious what I was looking for, but I can not find anything else on this topic.
How I decided this (get data from "last Friday"):
<cfset lastweek = dateAdd("d", -(DayOfWeek(now()) + 1), now()) />
strtotime Understand
any textual description of the date and time in English in a Unix timestamp
Jakub source
share