I would like to insert the data and time into the date/time field. If not defined, it usually defined the date only.
How do I put the time in as well. I am using Oracle database, but I would like to enter the date and time specified by Coldfusion.
<cfset todate = now()> <!--- holds the time and date --->
<cfquery name="newRecord" datasource="db">
insert into transaction(id,desc,postdate)
values (1,'Book','#now()#')
</cfquery>
How do i insert the time as well
How do I put the time in as well. I am using Oracle database, but I would like to enter the date and time specified by Coldfusion.
<cfset todate = now()> <!--- holds the time and date --->
<cfquery name="newRecord" datasource="db">
insert into transaction(id,desc,postdate)
values (1,'Book','#now()#')
</cfquery>
How do i insert the time as well