Solved

Easy One!!! Add 15 days to this date

Posted on 2002-07-23
7
149 Views
Last Modified: 2013-12-24
I have a line:

<cfset querydate = #Month(Now())#/1/#Year(Now())#>

how do i add 15 days to it
0
Comment
Question by:jeffmace
  • 4
  • 3
7 Comments
 
LVL 5

Expert Comment

by:Yog
ID: 7172218
<cfoutput>
#DateAdd('D', '15', '#querydate#')#
</cfoutput>
0
 

Author Comment

by:jeffmace
ID: 7172234
Is this the best way to get the current month and year while always have 1 as the date?

<cfset querydate = #Month(Now())#/1/#Year(Now())#>
0
 

Author Comment

by:jeffmace
ID: 7172245
If I do this:

<cfset querydate = #Month(Now())#/1/#Year(Now())#>
#DateFormat(querydate, 'mmmm d, yyyy')#

It comes out as:
December 30, 1899
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 5

Accepted Solution

by:
Yog earned 150 total points
ID: 7172330
try CREATEDATE (year, month, day)

<cfset querydate = createdate(#Year(Now())#, #Month(Now())#, 1)>
<Cfoutput>
#Dateformat(format required)#
</cfoutput>
0
 

Author Comment

by:jeffmace
ID: 7172349
If I do this:

<cfset querydate = #Month(Now())#/1/#Year(Now())#>
#DateFormat(querydate, 'mmmm d, yyyy')#

It comes out as:
December 30, 1899
0
 

Author Comment

by:jeffmace
ID: 7172354
Thanks for your help.. I increased the points for you for taking the time.
0
 
LVL 5

Expert Comment

by:Yog
ID: 7172823
Jeff,

Thank you for the points, did it work. As such 100 pts are normal here, you dont have to spend more points for simple questions. if you dont have points and need help anytime, feel free to mail me at yog_23@hotmail.com :)

cheers.
yog
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question