<x-html><div>At 06:38 AM 4/7/2001 -0400, you wrote:</div>
<blockquote type=cite class=cite cite><div>While this question is better
suited for another forum, you are saying that</div>
<div>(keeping it simple) if you did:</div>
<br>
<div>&lt;cfset display_from = &quot;07/04/2001&quot;&gt;</div>
<div>&lt;cfset display_from = dateformat(display_from,
&quot;mm/dd/yyyy&quot;)&gt;</div>
<div>&lt;cfoutput&gt;</div>
<div><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>#display_from#</div>
<div>&lt;/cfoutput&gt;</div>
<br>
<div>that you would get:</div>
<br>
<div>04/07/2001</div>
<br>
<div>?&nbsp; Should not be possible with the information you have
provided.&nbsp; Just</div>
<div>tested it to be sure, but there is nothing all that unusual or
complex about</div>
<div>what you say you are doing.&nbsp; Guess we need more
information.&nbsp; Do you enter</div>
<div>the date as straight text in a text input on a form or are using a
custom</div>
<div>tag of some sort to help validate data?&nbsp; Need more 
data.</div>
<br>
<div>On the database issues, it would be helpful to know what database
because if</div>
<div>its Access, I have found CreateODBCDate to provide incorrect
results.&nbsp; If</div>
<div>you want to keep this off fusebox mailing, e-mail me direct if you
would</div>
<div>like.</div>
<br>
<div>Mike Craig</div>
<div>[EMAIL PROTECTED]</div>
<div>FuseboxWorld</div>
<br>
<div>-----Original Message-----</div>
<div>From: Tim Price
[<a href="mailto:[EMAIL PROTECTED]" 
EUDORA=AUTOURL>mailto:[EMAIL PROTECTED]</a>]</div>
<div>Sent: Saturday, April 07, 2001 4:17 AM</div>
<div>To: Fusebox</div>
<div>Subject: Date fields</div>
<br>
<br>
<div>Could anyone shed any light onto why after entering a date of
&quot;07/04/2001&quot;</div>
<div>(dd/mm/yyyy format)the following &lt;cfset</div>
<div>display_from=#dateformat(display_from,&quot;dd/mm/yyyy&quot;)#&gt;</div>
<div>switches it to &quot;04/07/2001&quot; (this is only used to
redisplay it if the form</div>
<div>is redisplayed follwoing validation failure on any form
field)</div>
<br>
<div>...... unless that is I enter a day &gt; 12 and then it retains its
original</div>
<div>input &quot;13/04/2001&quot;</div>
<br>
<div>I also find that if I insert the field into the database without
using</div>
<div>CreateODBCDate it retains its orginal format but WITH CreateODBCDate
it</div>
<div>switches the dd/mm parts round if the dd is &lt; 13</div>
<br>
<div>Thanx in advance</div>
<br>
<div>Tim Price</div>
<div>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to