gsr
04/05/2024, 2:56 PM<cfif #sAppDateFormat# IS "MM/dd/YYYY">
<cfset StartDateIn = createdate(mid(FromDate,7,4),mid(FromDate,1,2),mid(FromDate,4,2))>
<cfset EndDateIn = createdate(mid(ToDate,7,4),mid(ToDate,1,2),mid(ToDate,4,2))>
<cfelseif #sAppDateFormat# IS "DD/MM/YYYY">
<cfset StartDateIn = createdate(mid(FromDate,7,4),mid(FromDate,4,2),mid(FromDate,1,2))>
<cfset EndDateIn = createdate(mid(ToDate,7,4),mid(ToDate,4,2),mid(ToDate,1,2))>
<cfelse>
<cfset StartDateIn = createdate(datepart("y",FromDate),datepart("m",FromDate),datepart("d",FromDate))>
<cfset EndDateIn = createdate(datepart("y",ToDate),datepart("m",ToDate),datepart("d",ToDate))>
</cfif>
to
<cffunction name="udfParseDate" returntype="date" output="false">
<cfargument name="sAppDateFormat" type="string" required="true">
<cfargument name="dateString" type="string" required="true">
<cfset var parsedDate = "">
<cfif sAppDateFormat EQ "MM/dd/YYYY">
<cfset parsedDate = ParseDateTime(dateString, "MM/dd/YYYY")>
<cfelseif sAppDateFormat EQ "DD/MM/YYYY">
<cfset parsedDate = ParseDateTime(dateString, "DD/MM/YYYY")>
<cfelse>
<cfthrow message="Unsupported date format. Please use MM/DD/YYYY or DD/MM/YYYY.">
</cfif>
<cfreturn parsedDate>
</cffunction>
trying to ask for suggestion, it seems right to me, but still askingDave Merrill
04/05/2024, 5:38 PMDave Merrill
04/05/2024, 6:42 PMHTTP Error 404.5 - Not Found
The request filtering module is configured to deny the URL sequence.
That doesn't seem ideal.
I could do that, and also add a custom error page for it, but it seems like I'm implementing this in more layers than may be necessary.
Anyone have any insight on better ideas or common practices?mauzer
04/05/2024, 6:56 PMmauzer
04/05/2024, 7:38 PMgsr
04/08/2024, 12:48 AMjakobward
04/08/2024, 2:31 AMmauzer
04/08/2024, 9:50 AMGareth
04/08/2024, 1:45 PMJustin B
04/08/2024, 5:28 PMrickmason
04/09/2024, 8:05 AMharryk
04/09/2024, 12:39 PMrickmason
04/10/2024, 4:39 AMmauzer
04/10/2024, 10:37 AMmauzer
04/10/2024, 10:39 AMDave Merrill
04/10/2024, 3:05 PMgsr
04/12/2024, 12:22 PMgsr
04/14/2024, 2:20 AMgsr
04/14/2024, 2:21 AMMike Greider
04/15/2024, 2:01 PMsatauros
04/16/2024, 11:49 AMwebsolete
04/16/2024, 3:29 PMgsr
04/16/2024, 5:24 PMDave Merrill
04/17/2024, 12:24 AMBill Nourse
04/17/2024, 2:49 PMBobby Palko
04/17/2024, 3:44 PMstatic
for a class variable. I have instance methods that attempt to reference this static variable, but in doing so I'm getting an error:
Variable CANCEL_ERROR_TEXT is undefined in static context.
I've tried defining a static block and just declaring it as static.CANCEL_ERROR_TEXT
, referencing it as static.CANCEL_ERROR_TEXT
and Customer::CANCEL_ERROR_TEXT
, and just about everything in the Adobe docs. The only thing that does the trick is to place the variable in the init method, which doesn't seem right to me. Am I missing something blatantly obvious here?mauzer
04/17/2024, 4:35 PMgsr
04/18/2024, 1:45 PMgsr
04/18/2024, 1:46 PMgsr
04/18/2024, 1:46 PM