RE: Quarter formula
Um, have you tried the BIF (built in function) Quarter? :) Quarter(Now()) === Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email: [EMAIL PROTECTED] Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: stas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 10:17 AM To: CF-Talk Subject: Quarter formula Hello, Does anybody have a tag or an expression to figure out which quarter today falls into? Thanks! __ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Quarter formula
If your logic is: 1=4 2=1 3=2 4=3 Then just say: cfset Quarter = QuarterNow()-1 cfif not Quarter cfset Quater = 4 /cfif === Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email: [EMAIL PROTECTED] Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: stas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 10:42 AM To: CF-Talk Subject: Re: Quarter formula Oh. hehe... Well, it doesn't fit our needs - today has to be interpreted as the 4th quarter. Our first quarter doesn't start until the 15th. Thanks though, I'll RTFM more before I ask again! - Original Message - From: Raymond Camden [EMAIL PROTECTED] Um, have you tried the BIF (built in function) Quarter? :) Quarter(Now()) __ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Quarter formula
Oops, QuarterNow should be Quarter(Now()). This is what happens when I try to code listening to 80s music. === Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email: [EMAIL PROTECTED] Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 10:48 AM To: CF-Talk Subject: RE: Quarter formula If your logic is: 1=4 2=1 3=2 4=3 Then just say: cfset Quarter = QuarterNow()-1 cfif not Quarter cfset Quater = 4 /cfif == = Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email: [EMAIL PROTECTED] Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: stas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 10:42 AM To: CF-Talk Subject: Re: Quarter formula Oh. hehe... Well, it doesn't fit our needs - today has to be interpreted as the 4th quarter. Our first quarter doesn't start until the 15th. Thanks though, I'll RTFM more before I ask again! - Original Message - From: Raymond Camden [EMAIL PROTECTED] Um, have you tried the BIF (built in function) Quarter? :) Quarter(Now()) __ 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=coldfusiona FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists