Hi,

I've never been able to get cfschedule to work programmatically but I really 
need to so it this time. The problem I'm trying to solve is to create a form 
that someone can fill out to time exactly when their press release goes 
live. They create the press release and save it as a 'work in progress' then 
I've created a form that they will specify when they want it to become 
'Live'. I'm 'hardcoding' dates and times right now just trying to see if it 
works and it is not. Is it supposed to show up in the CFAdmin as a new task 
once I run this page?

I'm using CF 4.5 and my interval in CFAdmin is set to 15.

Here's my code:

<CFSET StartDate = #DateFormat("#Now()#", "mm/dd/yyyy")#>
<CFSET StartTime = #TimeFormat(#CreateTime(16,  20,  0)#, "h:hhtt")#>

<cfschedule task="PublishPress" action="RUN" 
url="http://www.mypath.com/myfolder/mySubFolder/act_publish.cfm"; 
startdate="#StartDate#" starttime="#StartTime#">
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to