You can use something like:
<cfquery datasource="northwind" name="queryDB">
SELECT date_used, time_used
FROM invoicesTable
</cfquery>
<cfoutput query="queryDB">
#DateFormat(date_used, "m/d/yyyy")#
#TimeFormat(time_used, "h:mm tt")#
</cfoutput>
I think this is what you want.
you can use
#DateTimeFormat(Now(), "mmm d, yyyy","h:mm TT")
have a date and time format
Happy coding
source
share