On Nov 12, 2006, at 11:57 AM, Bob Imperial wrote:
> 1.)In outputting my datetime here, how would I go about adding the
> AM/PM
> designation for output?
>
> <cfset myDate = now()>
> <cffile action="write"
> file="#BaseDir#\index.cfm"
> output="Website directories were created successfully on
> #DateFormat(CreateODBCDate(myDate), "mmmm d, yyyy hh:mm:ss")#">
#DateFormat(createODBCDateTime(myDate), "mmmm dd, yyyy")# #TimeFormat
(createODBCDateTime(myDate),"hh:mm:ss tt")#
("tt" does not work in the DateFormat() function )
> OK, here's the simpleton question, can I put any html tags in the
> output
> above or into the output below? I'd like to put this in a div
> centered on
> the page.
>
>
> <cffile action="read" file="#BaseDir#\index.cfm"
> variable="confirmation">
> <cfoutput>
> #HTMLCodeFormat(confirmation)#
> </cfoutput>
You can put any HTML tags into your output, but you may need to
escape any CFML tags in the input by using #chr(60)# for "<" and #chr
(62)# for ">"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260086
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4