<x-html><div>At 12:26 PM 4/7/2001 -0400, you wrote:</div>
<blockquote type=cite class=cite cite><div>The default date format for
your locale is the typical month / day / year.</div>
<div>Thats why its switching the day and month around (except when you
have 13 or</div>
<div>higher in the first list position, sinse there are only 12
months).</div>
<br>
<div>Easiest solution would be to use a seperate form field for each
month/ day /</div>
<div>year and then reassemble them in the order you want. Or start
looking at</div>
<div>how use getlocale() setlocale()</div>
<br>
<div>Fred</div>
<br>
<br>
<div>----- Original Message -----</div>
<div>From: "Tim Price" <[EMAIL PROTECTED]></div>
<div>To: "Fusebox" <[EMAIL PROTECTED]></div>
<div>Sent: Saturday, April 07, 2001 4:17 AM</div>
<div>Subject: Date fields</div>
<br>
<br>
<div>> Could anyone shed any light onto why after entering a date of
"07/04/2001"</div>
<div>> (dd/mm/yyyy format)the following <cfset</div>
<div>>
display_from=#dateformat(display_from,"dd/mm/yyyy")#></div>
<div>> switches it to "04/07/2001" (this is only used to
redisplay it if the form</div>
<div>> is redisplayed follwoing validation failure on any form
field)</div>
<div>></div>
<div>> ..... unless that is I enter a day > 12 and then it retains
its original</div>
<div>> input "13/04/2001"</div>
<div>></div>
<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 < 13</div>
<div>></div>
<div>> Thanx in advance</div>
<div>></div>
<div>> Tim Price</div>
<div>></div>
<div>></div>
<div>></div>
<div>></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