• Home »
  • It's Party Time »
  • Events Calendar

Events Calendar

Lucee 5.2.1.9 Error (expression)
Message can't cast [9 - 1 - 2017] to date value
Stacktrace The Error Occurred in
E:\inetpub\wwwroot\domains\betterbrandsmb.com\htdocs\calendar\index.cfm: line 57
55:
56: <cfset thisMonth = "#DateFormat(thisMonth, "M")# - 1 - #DateFormat(thisMonth, "YYYY")#" />
57: <cfset lastMonth = DateFormat(DateAdd("M", -1, thisMonth), "M-D-YYYY") />
58: <cfset nextMonth = DateFormat(DateAdd("M", 1, thisMonth), "M-D-YYYY") />
59: <cfset totalDays = DaysInMonth(thisMonth)>

Java Stacktrace lucee.runtime.exp.ExpressionException: can't cast [9 - 1 - 2017] to date value
  at lucee.runtime.op.date.DateCaster.toDateAdvanced(DateCaster.java:83)
  at lucee.runtime.op.Caster.toDate(Caster.java:2829)
  at calendar.index_cfm$cf.call(/calendar/index.cfm:57)
  at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:928)
  at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:842)
  at lucee.runtime.listener.ClassicAppListener._onRequest(ClassicAppListener.java:63)
  at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:44)
  at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2408)
  at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2398)
  at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2366)
  at lucee.runtime.engine.Request.run(Request.java:34)
 
Timestamp 9/22/17 9:19:54 AM EDT