I can’t even make this up… This is actual code I f...
# cfml-general
d
I can’t even make this up… This is actual code I found in an old system I am reworking. These are the exact lines in the code, in order, no alterations.
Copy code
<cfset workdate = '*****'>
<cfset workdate = dateformat(#qry.closingdate#, 'mm/dd/yyyy')>

<cfif isdefined('qry.closingdate') and len(qry.closingdate) gt 0>
	<cfset workdate = dateformat(#qry.closingdate#, 'mm/dd/yyyy')>
<cfelse>
	<cfset workdate = ''>
</cfif>
🙃 1
😆 3
😱 4
slowclap 1
g
I see no issue here!
a
Oh god yeah, they've used
mm/dd/yyyy
as a date format. Ugh.
😀 3