DateAdd

2001-01-12 Thread Allan Pichler
Hi all, is the datepart "w" not supported anymore ?? or is it just buggy ? IMHO #dateadd("w", 1, now())# should return this time monday but it doesnt't Very weird ... Allan Pichler ~~ Structure your Col

DateAdd function

2002-05-24 Thread Yves Arsenault
I have never used these functions much. The syntax looks just like the help files. Can I use the DateAdd function in a CFSET? I get this error: Error Diagnostic Information An error occurred while evaluating the expression: TodayPlus1 = DateAdd(d, 1, Today) Error near line 24, column

RE: DateAdd

2001-01-12 Thread Phoeun Pha
u forgot to nest the DATEPART fucntion to evaluate the "w" -Original Message- From: Allan Pichler [mailto:[EMAIL PROTECTED]] Sent: Friday, January 12, 2001 3:59 PM To: CF-Talk Subject: DateAdd Hi all, is the datepart "w" not supported anymore ?? or is it just bu

dateadd problem

2001-12-20 Thread Eric J Hoffman
ok, what obvious deal have I missed? #finaldate# I get an error resolving "d" it says...trying to find the datee two days from today and delete everything from the database later from that date back. Eric J Hoffman Director of Internet Development Small Dog Design, LLC www.smalldogdesign.co

DateAdd problems.

2004-12-23 Thread Stuart Kidd
Hi, I'm having an annoying problem with DateAdd. I'm hosted in the States and I'm in the UK so to fix that in my Applicatin.cfm I've put: That is fine and i've used it forever. To find the current edition (month) of my magazine I use: I want to have an image on m

dateAdd() - workaround

2003-07-18 Thread Sean A Corfield
Mostly for Tony Weeg's benefit, this turned up on the BACFUG list and it answers Tony's question about the dateAdd() bug. Begin forwarded message: > From: Tariq Ahmed <[EMAIL PROTECTED]> > Date: Fri Jul 18, 2003 08:14:45 US/Pacific > To: [EMAIL PROTECTED] > Subject:

RE: DateAdd function

2002-05-24 Thread Kevin Schmidt
-Original Message- From: Yves Arsenault [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 7:29 AM To: CF-Talk Subject: DateAdd function I have never used these functions much. The syntax looks just like the help files. Can I use the DateAdd function in a CFSET? I get this

Re: DateAdd function

2002-05-24 Thread Yves Arsenault
Sent: Friday, May 24, 2002 9:30 AM Subject: RE: DateAdd function > > > -Original Message- > From: Yves Arsenault [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 24, 2002 7:29 AM > To: CF-Talk > Subject: DateAdd function > > I have never used these functions much

RE: DateAdd function

2002-05-24 Thread Kevin Schmidt
No problem -Original Message- From: Yves Arsenault [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 7:38 AM To: CF-Talk Subject: Re: DateAdd function Ah man, The Quotes weren't in the help file I looked at, and my brain didn't click in to trying them. Cu

RE: dateadd problem

2001-12-20 Thread Tyler M. Fitch
0 Portland, OR 97205 503.221.9860 ext. 111 http://isitedesign.com ** -Original Message- From: Eric J Hoffman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 5:24 PM To: CF-Talk Subject: dateadd problem ok, what

RE: dateadd problem

2001-12-20 Thread Eric J Hoffman
]] Sent: Thursday, December 20, 2001 7:26 PM To: CF-Talk Subject: RE: dateadd problem You'll want to put quotes "d" around the d. It's looking at d as a varialble without them. t ** Tyler M. Fitch Certified

DateSubtract Like DateAdd?

2003-10-15 Thread Dwayne Cole
How about a dateSubtract function? Does anyone know it there is a function similar to the dateAdd Function that instead adding specified number of days or months it actually subtracts a specified number of days or months.  I checked cflib.org but I could not find anything.    Dwayne Cole, MS in

RE: DateAdd problems.

2004-12-23 Thread Pascal Peters
UKTodayDate is not a function, but a variable: nextEdition = lcase(DateFormat(DateAdd("m", 1, UKTodayDate),"")) > -Original Message- > From: Stuart Kidd [mailto:[EMAIL PROTECTED] > Sent: 23 December 2004 13:39 > To: CF-Talk > Subject: DateAdd pr

Re: DateAdd problems.

2004-12-23 Thread Anthony Cooper
> lcase(MonthAsString(month(UKtodayDate()#> Hi Saturday, Noticed you've got an extra set of arguments after UKtodayDate which could be your problem, try: Also in the UK and always on the look out for a good host, have you found a US Host that's easy to deal with from here? Reply off list

RE: DateAdd problems.

2004-12-23 Thread Stuart Kidd
; >nextEdition = lcase(DateFormat(DateAdd("m", 1, UKTodayDate),"")) > >> -Original Message- >> From: Stuart Kidd [mailto:[EMAIL PROTECTED] >> Sent: 23 December 2004 13:39 >> To: CF-Talk >> Subject: DateAdd problems. >> >&g

Re: DateAdd problems.

2004-12-23 Thread Stuart Kidd
Hi Ant, I just got the solution from Pascal, thanks anyhow. I use www.hostmysite.com, i find them really good actually - i've been with them about 3 or 4 years. I've tried other US firms in the past like Interland but their customer support was really bad. I often get replies to my emails wi

RE: DateAdd problems.

2004-12-23 Thread Pascal Peters
DateAdd takes a date as 3rd argument, not the name of the month Pascal > > lcase(MonthAsString(month(UKtodayDate> > ~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.c

Re: DateSubtract Like DateAdd?

2003-10-15 Thread Jeff Garza
You can supply negative numbers to DateAdd... DateAdd("d", "-1", Now()) Subtracts a day from Today. Jeff   - Original Message -   From: Dwayne Cole   To: CF-Talk   Sent: Wednesday, October 15, 2003 4:32 PM   Subject: DateSubtract Like DateAdd?   How about a d

RE: DateSubtract Like DateAdd?

2003-10-15 Thread Barney Boisvert
just make the interval negative.  dateAdd("d", -14, now())   -Original Message-   From: Dwayne Cole [mailto:[EMAIL PROTECTED]   Sent: Wednesday, October 15, 2003 4:33 PM   To: CF-Talk   Subject: DateSubtract Like DateAdd?   How about a dateSubtract function? Does anyone know it

RE: DateSubtract Like DateAdd?

2003-10-15 Thread Dwayne Cole
WOW Kinda of embarrasing.  Thanks! -- Original Message -- From: "Barney Boisvert" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] Date:  Wed, 15 Oct 2003 16:39:26 -0700 >just make the interval negative.  dateAdd("d", -14, no

RE: DateSubtract Like DateAdd?

2003-10-15 Thread Barney Boisvert
I remember asking the exact same question, so if embarassing, you're certainly not alone.  ; )   -Original Message-   From: Dwayne Cole [mailto:[EMAIL PROTECTED]   Sent: Wednesday, October 15, 2003 4:45 PM   To: CF-Talk   Subject: RE: DateSubtract Like DateAdd?   WOW Kinda of embarr

RE: DateSubtract Like DateAdd?

2003-10-16 Thread Philip Arnold
, 2003 7:45 PM To: CF-Talk Subject: RE: DateSubtract Like DateAdd? WOW Kinda of embarrasing.  Thanks! -- Original Message -- From: "Barney Boisvert" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] Date:  Wed, 15 Oct 2003 16:39:26 -0700

DateAdd("m",3,now()) with a

2002-09-25 Thread Brian Thornton
Why does this work: #PreserveSingleQuotes(searchDate)# and not: #PreserveSingleQuotes(DateAdd("m",3,now()))# __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and rela

dateadd with grouped query and cfgraph

2002-03-21 Thread Jeff Beer
I run a graph on a server in a different time zone. I'd like to modify the times (hour only) by adding two hours. However, the query is grouped by day and hour, then fed into CFGRAPH. Anyone know if this can be done without modifying the data in the table? Thanks! Jeff __

Dateadd function problems with UK locale!

2000-12-05 Thread Anthony Caroleo
Hello All, I wonder if someone out there can help me? I am having a horrible time with the dateadd function using UK dates, I am acquiring a date value and increment values from a form and then incrementing other form values with this date and increment values. My problem seems to occur when

SQL DateAdd function - how do I?

2000-12-05 Thread Paul Sinclair
: select StartDate, this, that from tblName where StartDate between #createODBCdate(Now())# and DateAdd("d", 7, 'tblName.StartDate') I keep getting errors with various combinations of this that I have tried. Any ideas how to get this done? I assume that I can use SQL date functions t

DateAdd Strangeness? (Or is it me?)

2001-07-28 Thread Lee Fuller
Try this... #nextq# You should get (if you try this in July) the month returned as "10"... No problem. However.. Try this... #nextq# And you get the month returned as "6". Huh?? I thought quarters were January, April, July and October? How does one get a "6" as the first month in

Problem with DateFormat when using DateAdd

2002-02-06 Thread Stephen Adams
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

Re: DateAdd("m",3,now()) with a

2002-09-25 Thread Sean A Corfield
On Wednesday, September 25, 2002, at 03:53 , Brian Thornton wrote: > Why does this work: > > #PreserveSingleQuotes(searchDate)# > and not: > #PreserveSingleQuotes(DateAdd("m",3,now()))# I think everyone is coming to the conclusion that you can't put fu

RE: dateadd with grouped query and cfgraph

2002-03-21 Thread Dave Watts
> I run a graph on a server in a different time zone. I'd like > to modify the times (hour only) by adding two hours. However, > the query is grouped by day and hour, then fed into CFGRAPH. > > Anyone know if this can be done without modifying the data in > the table? You could modify the dat

RE: dateadd with grouped query and cfgraph

2002-03-21 Thread Cantrell, Adam
> Sent: Thursday, March 21, 2002 2:01 PM > To: CF-Talk > Subject: dateadd with grouped query and cfgraph > > > I run a graph on a server in a different time zone. I'd like > to modify the > times (hour only) by adding two hours. However, the query is > grouped by

RE: dateadd with grouped query and cfgraph

2002-03-21 Thread Jeff Beer
I figured it out - sorry for the bother. here's the fix: blah blah blah... DATEPART(hh, DATEADD(hh, 2, who.ActionDateTime)) AS HOURS GROUP BY DATEPART(hh, DATEADD(hh, 2, who.ActionDateTime)) blah blah blah mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 3:01 PM To: CF-Talk Su

RE: dateadd with grouped query and cfgraph

2002-03-21 Thread Jeff Beer
Adam, Dave, and anyone who answers before this hits the list - thanks for the assist!! -Original Message- From: Cantrell, Adam [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 3:13 PM To: CF-Talk Subject: RE: dateadd with grouped query and cfgraph Not exactly sure how your db

RE: dateadd with grouped query and cfgraph

2002-03-21 Thread VAN VLIET, SCOTT E (SBCSI)
You could modify your query object before sending it to . EXAMPLE: SELECT Date, Value FROM TableName ORDER BY Date QuerySetCell(graphData, "Date", DateAdd("h", 2, graphData.Date), graphData.CurrentRow); HTH ^_^ -- SCOTT VAN VLIET

Re: dateadd with grouped query and cfgraph

2002-03-21 Thread Robert Gatton
over the query and do your dateadd to the date field before you feed the query to cfgraph - Original Message - From: "Jeff Beer" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, March 21, 2002 3:00 PM Subject: dateadd with grouped que

RE: Dateadd function problems with UK locale!

2000-12-05 Thread Daniel Lancelot
To: CF-Talk :> Subject: Dateadd function problems with UK locale! :> :> :> Hello All, :> :> I wonder if someone out there can help me? I am having a :> horrible time with :> the dateadd function using UK dates, I am acquiring a date value and :> increment values

RE: SQL DateAdd function - how do I?

2000-12-05 Thread Walker, Matthew
> select StartDate, this, that > from tblName > where StartDate between #createODBCdate(Now())# and DateAdd("d", 7, > 'tblName.StartDate') Here you are testing to see if StartDate is between Now and StartDate + 7 Days. You should be testing to see if Now is bet

RE: SQL DateAdd function - how do I?

2000-12-06 Thread James McCullough
Just one 'H' #DateAdd('H', '3', Now())# -Original Message- From: Walker, Matthew [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 05, 2000 6:55 PM To: CF-Talk Subject: RE: SQL DateAdd function - how do I? > select StartDate, this, that > fr

Re: Problem with DateFormat when using DateAdd

2002-02-06 Thread nagraj
lk" <[EMAIL PROTECTED]> Sent: Wednesday, February 06, 2002 7:59 PM Subject: Problem with DateFormat when using DateAdd > 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

DateAdd in CF and Date Field in Oracle...

2001-04-12 Thread Zhou, Mei Y (Mei)
Does anyone use DateAdd in ColdFusion before and tell me why I can not use the return value from DateAdd to compare with date field in a table? My problem is: and it does print out endDate as date, however, when I

RE: DateAdd in CF and Date Field in Oracle...

2001-04-12 Thread Larry Juncker
dDate,"dd-mmm-yy")#'; Larry Juncker Senior Cold Fusion Developer Heartland Communications Group, Inc. -Original Message- From: Zhou, Mei Y (Mei) [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 12, 2001 12:58 PM To: CF-Talk Subject: DateAdd in CF and Date Field in Oracle.

RE: DateAdd in CF and Date Field in Oracle...

2001-04-12 Thread John Wilker
haracters to find a phonetic equivalent "kokou kole", translating into "happiness in the mouth." -Original Message- From: Zhou, Mei Y (Mei) [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 12, 2001 10:58 AM To: CF-Talk Subject: DateAdd in CF and Date Field in Oracle...

Re: DateAdd Strangeness? (Or is it me?) --it's you!!

2001-07-28 Thread Saro
, July 28, 2001 11:07 AM Subject: DateAdd Strangeness? (Or is it me?) > Try this... > > > > > #nextq# > > > You should get (if you try this in July) the month returned as "10"... > No problem. > > However.. Try this... > > > >

RE: DateAdd Strangeness? (Or is it me?) --it's you!!

2001-07-28 Thread Lee Fuller
enough.. If you use "Quarter(now())" it returns the number based on calendar quarters. So if you're trying to modify a date to get the next "calendar" quarter.. It would be simple to use the dateadd to add a quarter and voila! But.. Sadly it doesn't work that way

Re: DateAdd Strangeness? (Or is it me?) --it's you!!

2001-07-28 Thread Steven Durette
Don't forget, some fiscal years start and end in February. Therefore, fiscal 1Q 2001 would be Feb-Apr. - Original Message - From: "Lee Fuller" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Saturday, July 28, 2001 2:46 PM Subject:

Re: DateAdd Strangeness? (Or is it me?) --it's you!!

2001-07-28 Thread Jim McAtee
- Original Message - From: "Lee Fuller" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Saturday, July 28, 2001 12:46 PM Subject: RE: DateAdd Strangeness? (Or is it me?) --it's you!! > Yes.. But... (isn't there always one?? ;