try this - take the one thats appropriate

 #DateFormat(now())#
 #DateFormat(now(), "mmm-dd-yyyy")#
 #DateFormat(now(), "mmmm d, yyyy")#
 #DateFormat(now(), "mm/dd/yyyy")#
 #DateFormat(now(), "d-mmm-yyyy")#  
 #DateFormat(now(), "ddd, mmmm dd, yyyy")#  
 #DateFormat(now(), "d/m/yy")#

Paul Melanophy
Web Applications Developer
133 - 137 Lisburn Road
Belfast
N. Ireland
BT9 7AG 
T  +44 (0) 28 9022 3224
F  +44 (0) 28 9022 3223
E  [EMAIL PROTECTED]
W http://www.biznet-solutions.com 


-----Original Message-----
From: Phillip Broussard [mailto:[EMAIL PROTECTED]]
Sent: 05 March 2002 16:16
To: CF-Talk
Subject: whats wrong with DateFormat()


Ok I put DateFormat(day(now()), 'dd') on a page and instead of returning
05 it gave me 04. 
If I put day(now()) on a page I get 5.
If I put day(5) on a page I get 4.
If I put DateFormat(now(), 'yyyymmdd') on a page I get 20020305

Why? 

TAI

Phillip Broussard
Tracker Marine Group
417-873-5957



______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to