This is the code <cfset request.datedue = Creat...
# cfml-beginners
f
This is the code <cfset request.datedue = CreateDateTime(2022,09,27,23,59,59)> then down the page <cfif now() GTE request.datedue> so I have to change request.datedue
m
First please use threads it is hard to follow an unthreaded conversation. Second have you tried it... have you tried breaking your code down into the simplest form... who cares about anything else ... just set the date compare the date does it pass.. Use trycf.com for your isolated proof of concepts... I am sure you will see your answer fairly quickly.
a
I'll add to that... what docs have you read on this, @Formiko? By the sounds of it: none. You don't indicate any reserch on your part first, anyhow Reading the relevant docs and taking time to understand them would be the place to start. I recommend reading the docs on:
createDateTime
,
now
, probably whatever is printed about date/time processing / logic in CFML. Maybe google "how to compare dates in CFML" (this will lead you to
dateCompare
. Read those docs too). It's not our job to somehow understand CFML on your behalf. This is what your question is trying to do. You need to understand basic CFML. Don't look at code you don't understand and ask "what does this do?". Go and teach yourself what it does. Put some yards in there first, and then when you have a specific case that bamboozles you, create an SSCCE (sscce.org) on trycf.com and, and ask a targeted, well-formed question (read http://www.catb.org/~esr/faqs/smart-questions.html). Lastly, when asking a question: take your time, use full sentences, and before pressing send ask yerself "if anyone else other than me reads this, have they any chance to know what I am asking?".