I have discovered that in an environment comprised of Windows Server 2012 R2 and CF11 (or CF16) that CF date functions contained within CFQUERY will produce ISO 8601 datetime values. For example, the value of start_dt in the following query will contain the letter 'T' between the date portion and time portion of the value of start_date:
<CFQUERY name="qry_dates" datasource="mydatasource">
SELECT #now()# as start_dt,
last_name
FROM mytable
WHERE last_name = 'Smith'
</CFQUERY>
The value of start_dt will be something like: 2016-06-28T09:38:24
My database is installed in SQL Server 2014 Standard on a server running Windows Server 2012 R2. This did not happen with the same code where CF11 was running in WS12 R2 but the database was in an instance of SQL Server 2012 running on WS08 R2. I need to eliminate the ISO 8601 formatting, i.e. eliminate the 'T' in the datetime string so it becomes 2016-06-2809:38:24. Any help would be appreciated.