Status/Resolution/Reason: Closed/Withdrawn/UserError
Reporter/Name(from Bugbase): Jack Drysdale Jr / Jack Drysdale Jr ()
Created: 03/13/2018
Components: Language, DateTime Functions
Versions: 10.0
Failure Type: Data Corruption
Found In Build/Fixed In Build: 10,0,20,299202 /
Priority/Frequency: Normal / All users will encounter
Locale/System: ALL / Windows 10
Vote Count: 0
Problem Description:
CreateDateTime() does not like me using '11' for the day part.
Steps to Reproduce:
<cfset aDateTime = CreateDateTime(2018,3,10,2,0,0) />
<cfset bDateTime = CreateDateTime(2018,3,11,2,0,0) />
<cfset cDateTime = CreateDateTime(2018,3,12,2,0,0) />
<cfoutput>
#aDate#
#bDate#
#cDate#
</cfoutput>
Actual Result:
{ts'2018-03-10 02:00:00'}
!!! I GET AN ERROR MESSAGE THAT STATES 'DATA VALUE PASSED TO DATE FUNCTION CREATEDATETIME IS UNSPECIFIED OR INVALID !!!
Expected Result:
{ts'2018-03-10 02:00:00'}
{ts'2018-03-11 02:00:00'}
{ts'2018-03-12 02:00:00'}
Any Workarounds:
None
Attachments:
Comments: