Skip to content

Instantly share code, notes, and snippets.

Avatar

TryCF.com trycf

View GitHub Profile
View trycf-gist-1611239158170-22af51e7-3820-f259-11e4-457a6adea9a4.cfm
<cfscript>
lastExecuted = dateAdd('y', -66, now());
writedump(lastExecuted)
coupon = {
"scheduled" = true,
"scheduledType" = "w",
View trycf-gist-1611239158170-22af51e7-3820-f259-11e4-457a6adea9a4.cfm
<cfscript>
lastExecuted = dateAdd('y', -66, now());
writedump(lastExecuted)
coupon = {
"scheduled" = true,
"scheduledType" = "w",
View trycf-gist-1611239158170-22af51e7-3820-f259-11e4-457a6adea9a4.cfm
<cfscript>
lastExecuted = dateAdd('y', -66, now());
writedump(lastExecuted)
coupon = {
"scheduled" = true,
"scheduledType" = "w",
View trycf-gist-1611239158170-22af51e7-3820-f259-11e4-457a6adea9a4.cfm
<cfscript>
lastExecuted = dateAdd('y', -66, now());
writedump(lastExecuted)
coupon = {
"scheduled" = true,
"scheduledType" = "w",
View trycf-gist-1611239158170-22af51e7-3820-f259-11e4-457a6adea9a4.cfm
<cfscript>
lastExecuted = dateAdd('y', -66, now());
writedump(lastExecuted)
coupon = {
"scheduled" = true,
"scheduledType" = "w",
View trycf-gist-1611239158170-22af51e7-3820-f259-11e4-457a6adea9a4.cfm
<cfscript>
lastExecuted = dateAdd('y', -66, now());
writedump(lastExecuted)
coupon = {
"scheduled" = true,
"scheduledType" = "w",
View trycf-gist-1611239158170-22af51e7-3820-f259-11e4-457a6adea9a4.cfm
<cfscript>
lastExecuted = dateAdd('y', -66, now());
writedump(lastExecuted)
coupon = {
"scheduled" = true,
"scheduledType" = "w",
View trycf-gist-1611239158170-22af51e7-3820-f259-11e4-457a6adea9a4.cfm
<cfscript>
lastExecuted = dateAdd('y', -66, now());
writedump(lastExecuted)
coupon = {
"scheduled" = true,
"scheduledType" = "w",
View trycf-gist-1611239158170-22af51e7-3820-f259-11e4-457a6adea9a4.cfm
<cfscript>
date = now();
date = dateAdd('d', 100, date)
writedump(date)
writedump(DatePart('y', date))
lastScheduled = now();
currentDate = now();
scheduleType = 'd';
View trycf-gist-1611239158170-22af51e7-3820-f259-11e4-457a6adea9a4.cfm
<cfscript>
date = now();
date = dateAdd('d', 100, date)
writedump(date)
writedump(DatePart('y', date))
lastScheduled = now();
currentDate = now();
scheduleType = 'd';