Hi,

I am trying to create two separate dates, the present date and the date a week later, 
as today is 06/02/02 that is one date then next one is 13/02/02.

The problem I am having is with formatting the second date.  As I am in the UK I want 
the format of the dates to be dd/mm/yy, but when I go to add this extra week on to the 
date it adds three days onto the day and four months onto the month, so today's date 
becomes 09/06/02.

Here's the code I am using:

<!--- creates date for when a registration has first been created --->
<cfset session.DateRegistrationCreated = #DateFormat(Now(),"dd/mm/yy")#>
                
<!--- created date seven days after DateRegistrationCreated --->
<cfset session.DateRegistrationExpired = #DateFormat(DateAdd("ww", 1, 
session.DateRegistrationCreated), "dd/mm/yy")#>

How can I change this so I can keep the same format and still get the date added to.

Stephen
______________________________________________________________________
Why Share?
  Dedicated Win 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=coldfusionc
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