Hi Guys,
this web site, I'm working on, is posting messages from across Canada and various time zones. Is there any way to get the local time into the SQL query below? Right now it is using the time from the web server, which is located one time zone to the east. And is one hour ahead.
<CFQUERY NAME="Update" DATASOURCE="autonews">
INSERT INTO NewsMessages (title_e, title_f, itc_e, itc_f, message_e, message_f, <b>date_posted</b>, Expire)
VALUES ('#form.title_e#','#form.title_f#','#form.itc_e#','#form.itc_f#','#form.message_e#','#form.message_f#', <b>#CreateODBCDateTime(Now())#</b>,'#DateFormat(form.expire,"DD/MM/YYYY"
#')
</CFQUERY>
Thanks ahead of time.
I owe you one,
Marc
Québec, Canada
this web site, I'm working on, is posting messages from across Canada and various time zones. Is there any way to get the local time into the SQL query below? Right now it is using the time from the web server, which is located one time zone to the east. And is one hour ahead.
<CFQUERY NAME="Update" DATASOURCE="autonews">
INSERT INTO NewsMessages (title_e, title_f, itc_e, itc_f, message_e, message_f, <b>date_posted</b>, Expire)
VALUES ('#form.title_e#','#form.title_f#','#form.itc_e#','#form.itc_f#','#form.message_e#','#form.message_f#', <b>#CreateODBCDateTime(Now())#</b>,'#DateFormat(form.expire,"DD/MM/YYYY"
</CFQUERY>
Thanks ahead of time.
I owe you one,
Marc
Québec, Canada