Actually you aren't supposed to use date as a field name..

<!--- Rename the date field to date_var --->
<CFQUERY NAME="datequery">
SELECT date_var FROM details
</CFQUERY>

<!--- Be sure to add tons of comments here --->
<CFOUTPUT QUERY="datequery">
#DateFormat(date_var,"DD/MM/YYYY")#
</CFOUTPUT>


-----Original Message-----
From: WL <[EMAIL PROTECTED]>
To: Cold Fusion Talk <[EMAIL PROTECTED]>
Date: Monday, May 01, 2000 7:18 AM
Subject: Date question in CF


Hi,

I have a SQL query that goes like "SELECT date FROM details" - except that
it displays the date and time - something like 30/04/00 00:00:00.  I'm using
MS Access, (.mdb) - how can I change the display format of the date?  I
would ideally like to display it as dd/mmmm/yyyy and with no time in it.

Thanks in advance,

Will

----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.


------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to