Re: formatting #MonthasString

2002-10-18 Thread Randell B Adkins
if the field: MONTH is numeric and you want the actual String: #MonthAsString(month)# --- MonthAsString only takes 1 parameter. [EMAIL PROTECTED] 10/18/02 12:30PM Is there a way to format a number value retrieved for a month (ex 10 for the month of October) with the #monthasString#

RE: formatting #MonthasString

2002-10-18 Thread Timothy Heald
I would make a full date, then use date format to get the result I wanted in this case, either that or use string functions like left to get what you want. Tim -Original Message- From: Tim Laureska [mailto:hometeam;goeaston.net] Sent: Friday, October 18, 2002 12:30 PM To: CF-Talk

RE: formatting #MonthasString

2002-10-18 Thread Raymond Camden
MonthAsString will converts X, where X is the month of the year, to a string. What you want to is to change X into a real date object. You can do this by using createDate(). Then you can use dateFormat to format the month. Or, if you just want the three letter abreviation - aren't all of them

RE: formatting #MonthasString

2002-10-18 Thread Adrocknaphobia Jones
Just: #monthAsString(month)# There aren't any formatting parameters. Adam Wayne Lehman Web Systems Developer Johns Hopkins Bloomberg School of Public Health Distance Education Division -Original Message- From: Tim Laureska [mailto:hometeam;goeaston.net] Sent: Friday, October 18, 2002

Re: formatting #MonthasString

2002-10-18 Thread Joe Eugene
You can use #DateFormat(YourDate,mmm)# Or #MonthAsString(month(YourDate))# month(YourDate) gives you the month. Joe On Fri, 18 Oct 2002 12:30:15 -0400 Tim Laureska [EMAIL PROTECTED] wrote: Is there a way to format a number value retrieved for a month (ex 10 for the month of October) with

RE: formatting #MonthasString

2002-10-18 Thread Mosh Teitelbaum
No, you can't specify formatting within the MonthAsString() function. Instead, you might consider using DateFormat() as in: CFSET month = 10 CFSET myDate = CreateDate(Year(Now()), month, Day(Now())) CFOUTPUT#DateFormat(myDate, mmm)#/CFOUTPUT -- Mosh Teitelbaum evoch, LLC

RE: formatting #MonthasString

2002-10-18 Thread Tim Laureska
OK... I was just trying to convert the month number (ex 10 for October) into Oct instead of October -Original Message- From: Randell B Adkins [mailto:AdkinsR;GAO.GOV] Sent: Friday, October 18, 2002 1:10 PM To: CF-Talk Subject: Re: formatting #MonthasString if the field: MONTH is numeric

Re: formatting #MonthasString

2002-10-18 Thread charlie griefer
] Sent: Friday, October 18, 2002 1:51 PM To: CF-Talk Subject: RE: formatting #MonthasString I would make a full date, then use date format to get the result I wanted in this case, either that or use string functions like left to get what you want. Tim -Original Message- From

RE: formatting #MonthasString

2002-10-18 Thread Tim Laureska
Larry thanks a bunch I just didn't know the correct syntax Tim -Original Message- From: Larry Juncker [mailto:larry;heartlandinternet.com] Sent: Friday, October 18, 2002 3:40 PM To: CF-Talk Subject: RE: formatting #MonthasString Tim; What exactly is you are wanting to end up

RE: formatting #MonthasString

2002-10-18 Thread Adrocknaphobia Jones
Bloomberg School of Public Health Distance Education Division -Original Message- From: Timothy Heald [mailto:healdt;dsmail.state.gov] Sent: Friday, October 18, 2002 1:51 PM To: CF-Talk Subject: RE: formatting #MonthasString I would make a full date, then use date format to get the result I

Re: formatting #MonthasString

2002-10-18 Thread Mike Wokasch
Tim - try: #MonthAsString(month)# --- there is no masking. If you really want to mask: #DateFormat(CreateDate(2002, month, 1), MM)# Mike Wokasch UW-Extension more coldfusion help Efnet #ColdFusion At 12:30 PM 10/18/2002 -0400, you wrote: Is there a way to format a number value retrieved for a

RE: formatting #MonthasString

2002-10-18 Thread Larry Juncker
Tim; What exactly is you are wanting to end up with? If you are providing a number as the month such as: month = 10 and you are wanting the String representation of such then MonthAsString(month) is all you need to give you: October else if you want just the first Three letters of

Re: formatting #MonthasString

2002-10-18 Thread charlie griefer
Message- From: Randell B Adkins [mailto:AdkinsR;GAO.GOV] Sent: Friday, October 18, 2002 1:10 PM To: CF-Talk Subject: Re: formatting #MonthasString if the field: MONTH is numeric and you want the actual String: #MonthAsString(month)# --- MonthAsString only takes 1 parameter