DateFormat in CFMX

2002-12-23 Thread Randell B Adkins
Is there a dateformat issue using CFMX that was addressed in
some update/patch, or some means??

When doing a directory listing, some directories will report
fine and format the date accordingly using the DateFormat
function. However, there are some directories which will
throw an error. Nothing special regarding the directory.

Thanks in Advance!



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



Re: DateFormat in CFMX

2002-12-23 Thread Randell B Adkins
After checking the archives, there did seem to be
an issue with this. 

Rob Rohan - Did you determine what the problem was as
well as a fix?

Sean A Corfield - Any ideas on it? It works on some directories
but noth others.

Thanks!!



>>> [EMAIL PROTECTED] 12/23/02 08:32AM >>>
Is there a dateformat issue using CFMX that was addressed in
some update/patch, or some means??

When doing a directory listing, some directories will report
fine and format the date accordingly using the DateFormat
function. However, there are some directories which will
throw an error. Nothing special regarding the directory.

Thanks in Advance!




~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



Re: DateFormat in CFMX

2002-12-23 Thread Taz
What's the error? Could you give us some examples of data that works and
data that throws errors?

Perhaps the locale of the system is conflicting. For example you may find
that dates such as 02/03/2002 are working but 14/03/2002 are not because its
mixing up the day/month as month/day (taking non-US dates as example)

Taz


> Is there a dateformat issue using CFMX that was addressed in
> some update/patch, or some means??
>
> When doing a directory listing, some directories will report
> fine and format the date accordingly using the DateFormat
> function. However, there are some directories which will
> throw an error. Nothing special regarding the directory.

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



RE: DateFormat in CFMX

2002-12-23 Thread Raymond Camden
What locale are you under?

===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email: [EMAIL PROTECTED]
WWW  : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -Original Message-
> From: Randell B Adkins [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, December 23, 2002 7:53 AM
> To: CF-Talk
> Subject: Re: DateFormat in CFMX
> 
> 
> After checking the archives, there did seem to be
> an issue with this. 
> 
> Rob Rohan - Did you determine what the problem was as
> well as a fix?
> 
> Sean A Corfield - Any ideas on it? It works on some 
> directories but noth others.
> 
> Thanks!!
> 
> 
> 
> >>> [EMAIL PROTECTED] 12/23/02 08:32AM >>>
> Is there a dateformat issue using CFMX that was addressed in 
> some update/patch, or some means??
> 
> When doing a directory listing, some directories will report 
> fine and format the date accordingly using the DateFormat 
> function. However, there are some directories which will 
> throw an error. Nothing special regarding the directory.
> 
> Thanks in Advance!
> 
> 
> 
> 
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



Re: DateFormat in CFMX

2002-12-23 Thread Randell B Adkins
As simply as it is:



#name#  - #LSDateFormat(DateLastModified," DD, ")#


Some directories would return (as expected):
Directory1 - December 12, 2002
Directory2 - December 12, 2002
Directory3 - December 12, 2002

Then lets say the 4th Directory would error out:
Directory1 - 

Error:
The value "Tuesday, 17 December 2002 05:21:09 PM EST"
could not be converted to a date.

Why would directories 1-3 process fine and Directory 4
error out? All are using the same DateFormat function
with the DateLastModified attribute from the CFDirectory
function.






>>> [EMAIL PROTECTED] 12/23/02 08:57AM >>>
What's the error? Could you give us some examples of data that works
and
data that throws errors?

Perhaps the locale of the system is conflicting. For example you may
find
that dates such as 02/03/2002 are working but 14/03/2002 are not
because its
mixing up the day/month as month/day (taking non-US dates as example)

Taz


> Is there a dateformat issue using CFMX that was addressed in
> some update/patch, or some means??
>
> When doing a directory listing, some directories will report
> fine and format the date accordingly using the DateFormat
> function. However, there are some directories which will
> throw an error. Nothing special regarding the directory.


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



RE: DateFormat in CFMX

2002-12-23 Thread Randell B Adkins
In this case, English (US). 

But could be lets say English (New Zealand)
or really any other Locale.

Would using the LSDateFormat function be better
if the Locale could vary?



>>> [EMAIL PROTECTED] 12/23/02 09:05AM >>>
What locale are you under?

===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email: [EMAIL PROTECTED] 
WWW  : www.camdenfamily.com/morpheus 
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -Original Message-
> From: Randell B Adkins [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, December 23, 2002 7:53 AM
> To: CF-Talk
> Subject: Re: DateFormat in CFMX
> 
> 
> After checking the archives, there did seem to be
> an issue with this. 
> 
> Rob Rohan - Did you determine what the problem was as
> well as a fix?
> 
> Sean A Corfield - Any ideas on it? It works on some 
> directories but noth others.
> 
> Thanks!!
> 
> 
> 
> >>> [EMAIL PROTECTED] 12/23/02 08:32AM >>>
> Is there a dateformat issue using CFMX that was addressed in 
> some update/patch, or some means??
> 
> When doing a directory listing, some directories will report 
> fine and format the date accordingly using the DateFormat 
> function. However, there are some directories which will 
> throw an error. Nothing special regarding the directory.
> 
> Thanks in Advance!
> 
> 
> 
> 
> 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



RE: DateFormat in CFMX

2002-12-23 Thread Raymond Camden
I'm not saying it could cause an issue, but it does affect how the date
parsing works - I'm just trying to narrow down the posibilities. As it
stands, I ran this:

#dateformat('Tuesday, 17 December 2002 05:21:09 PM
EST')#

and got an error on my box. Looks like it may be a bug unless I'm
missing something.

===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email: [EMAIL PROTECTED]
WWW  : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -Original Message-
> From: Randell B Adkins [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, December 23, 2002 8:11 AM
> To: CF-Talk
> Subject: RE: DateFormat in CFMX
> 
> 
> In this case, English (US). 
> 
> But could be lets say English (New Zealand)
> or really any other Locale.
> 
> Would using the LSDateFormat function be better
> if the Locale could vary?
> 
> 
> 
> >>> [EMAIL PROTECTED] 12/23/02 09:05AM >>>
> What locale are you under?
> 
> ==
> =
> Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> 
> Email: [EMAIL PROTECTED] 
> WWW  : www.camdenfamily.com/morpheus 
> Yahoo IM : morpheus
> 
> "My ally is the Force, and a powerful ally it is." - Yoda 
> 
> > -Original Message-
> > From: Randell B Adkins [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, December 23, 2002 7:53 AM
> > To: CF-Talk
> > Subject: Re: DateFormat in CFMX
> > 
> > 
> > After checking the archives, there did seem to be
> > an issue with this.
> > 
> > Rob Rohan - Did you determine what the problem was as
> > well as a fix?
> > 
> > Sean A Corfield - Any ideas on it? It works on some
> > directories but noth others.
> > 
> > Thanks!!
> > 
> > 
> > 
> > >>> [EMAIL PROTECTED] 12/23/02 08:32AM >>>
> > Is there a dateformat issue using CFMX that was addressed in
> > some update/patch, or some means??
> > 
> > When doing a directory listing, some directories will report
> > fine and format the date accordingly using the DateFormat 
> > function. However, there are some directories which will 
> > throw an error. Nothing special regarding the directory.
> > 
> > Thanks in Advance!
> > 
> > 
> > 
> > 
> > 
> 
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



RE: DateFormat in CFMX

2002-12-23 Thread Randell B Adkins
I agree. Running the line as you did, does result in an error
with the class: java.util.Date

Can anyone from Macromedia chime in on this???



>>> [EMAIL PROTECTED] 12/23/02 09:21AM >>>
I'm not saying it could cause an issue, but it does affect how the
date
parsing works - I'm just trying to narrow down the posibilities. As it
stands, I ran this:

#dateformat('Tuesday, 17 December 2002 05:21:09 PM
EST')#

and got an error on my box. Looks like it may be a bug unless I'm
missing something.

===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email: [EMAIL PROTECTED] 
WWW  : www.camdenfamily.com/morpheus 
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -Original Message-
> From: Randell B Adkins [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, December 23, 2002 8:11 AM
> To: CF-Talk
> Subject: RE: DateFormat in CFMX
> 
> 
> In this case, English (US). 
> 
> But could be lets say English (New Zealand)
> or really any other Locale.
> 
> Would using the LSDateFormat function be better
> if the Locale could vary?
> 
> 
> 
> >>> [EMAIL PROTECTED] 12/23/02 09:05AM >>>
> What locale are you under?
> 
> ==
> =
> Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> 
> Email: [EMAIL PROTECTED] 
> WWW  : www.camdenfamily.com/morpheus 
> Yahoo IM : morpheus
> 
> "My ally is the Force, and a powerful ally it is." - Yoda 
> 
> > -Original Message-
> > From: Randell B Adkins [mailto:[EMAIL PROTECTED]] 
> > Sent: Monday, December 23, 2002 7:53 AM
> > To: CF-Talk
> > Subject: Re: DateFormat in CFMX
> > 
> > 
> > After checking the archives, there did seem to be
> > an issue with this.
> > 
> > Rob Rohan - Did you determine what the problem was as
> > well as a fix?
> > 
> > Sean A Corfield - Any ideas on it? It works on some
> > directories but noth others.
> > 
> > Thanks!!
> > 
> > 
> > 
> > >>> [EMAIL PROTECTED] 12/23/02 08:32AM >>>
> > Is there a dateformat issue using CFMX that was addressed in
> > some update/patch, or some means??
> > 
> > When doing a directory listing, some directories will report
> > fine and format the date accordingly using the DateFormat 
> > function. However, there are some directories which will 
> > throw an error. Nothing special regarding the directory.
> > 
> > Thanks in Advance!
> > 
> > 
> > 
> > 
> > 
> 
> 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



RE: DateFormat in CFMX

2002-12-23 Thread Raymond Camden
Of course, if you actually convert the string to a real date ob, it
works just fine...

#dateformat(parseDateTime('Tuesday, 17 December 2002 05:21:09
PM EST'))#

===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email: [EMAIL PROTECTED]
WWW  : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -Original Message-
> From: Randell B Adkins [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, December 23, 2002 8:26 AM
> To: CF-Talk
> Subject: RE: DateFormat in CFMX
> 
> 
> I agree. Running the line as you did, does result in an error 
> with the class: java.util.Date
> 
> Can anyone from Macromedia chime in on this???
> 
> 
> 
> >>> [EMAIL PROTECTED] 12/23/02 09:21AM >>>
> I'm not saying it could cause an issue, but it does affect 
> how the date parsing works - I'm just trying to narrow down 
> the posibilities. As it stands, I ran this:
> 
> #dateformat('Tuesday, 17 December 2002 05:21:09 PM 
> EST')#
> 
> and got an error on my box. Looks like it may be a bug unless 
> I'm missing something.
> 
> ==
> =
> Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> 
> Email: [EMAIL PROTECTED] 
> WWW  : www.camdenfamily.com/morpheus 
> Yahoo IM : morpheus
> 
> "My ally is the Force, and a powerful ally it is." - Yoda 
> 
> > -Original Message-
> > From: Randell B Adkins [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, December 23, 2002 8:11 AM
> > To: CF-Talk
> > Subject: RE: DateFormat in CFMX
> > 
> > 
> > In this case, English (US).
> > 
> > But could be lets say English (New Zealand)
> > or really any other Locale.
> > 
> > Would using the LSDateFormat function be better
> > if the Locale could vary?
> > 
> > 
> > 
> > >>> [EMAIL PROTECTED] 12/23/02 09:05AM >>>
> > What locale are you under?
> > 
> > ==
> > =
> > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> > 
> > Email    : [EMAIL PROTECTED] 
> > WWW  : www.camdenfamily.com/morpheus 
> > Yahoo IM : morpheus
> > 
> > "My ally is the Force, and a powerful ally it is." - Yoda
> > 
> > > -Original Message-
> > > From: Randell B Adkins [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, December 23, 2002 7:53 AM
> > > To: CF-Talk
> > > Subject: Re: DateFormat in CFMX
> > > 
> > > 
> > > After checking the archives, there did seem to be
> > > an issue with this.
> > > 
> > > Rob Rohan - Did you determine what the problem was as
> > > well as a fix?
> > > 
> > > Sean A Corfield - Any ideas on it? It works on some 
> directories but 
> > > noth others.
> > > 
> > > Thanks!!
> > > 
> > > 
> > > 
> > > >>> [EMAIL PROTECTED] 12/23/02 08:32AM >>>
> > > Is there a dateformat issue using CFMX that was addressed in some 
> > > update/patch, or some means??
> > > 
> > > When doing a directory listing, some directories will report fine 
> > > and format the date accordingly using the DateFormat function. 
> > > However, there are some directories which will throw an error. 
> > > Nothing special regarding the directory.
> > > 
> > > Thanks in Advance!
> > > 
> > > 
> > > 
> > > 
> > > 
> > 
> > 
> 
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



RE: DateFormat in CFMX

2002-12-23 Thread Randell B Adkins
Actually I found the resolution based on the Locale of the system.

I had to use the LSDateFormat/ LSTimeFormat in conjunction with 
the parseDateTime.

So far my testing has came back positive. More testing to go!

Thanks Ray!



>>> [EMAIL PROTECTED] 12/23/02 09:35AM >>>
Of course, if you actually convert the string to a real date ob, it
works just fine...

#dateformat(parseDateTime('Tuesday, 17 December 2002
05:21:09
PM EST'))#

===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email: [EMAIL PROTECTED] 
WWW  : www.camdenfamily.com/morpheus 
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -Original Message-
> From: Randell B Adkins [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, December 23, 2002 8:26 AM
> To: CF-Talk
> Subject: RE: DateFormat in CFMX
> 
> 
> I agree. Running the line as you did, does result in an error 
> with the class: java.util.Date
> 
> Can anyone from Macromedia chime in on this???
> 
> 
> 
> >>> [EMAIL PROTECTED] 12/23/02 09:21AM >>>
> I'm not saying it could cause an issue, but it does affect 
> how the date parsing works - I'm just trying to narrow down 
> the posibilities. As it stands, I ran this:
> 
> #dateformat('Tuesday, 17 December 2002 05:21:09 PM 
> EST')#
> 
> and got an error on my box. Looks like it may be a bug unless 
> I'm missing something.
> 
> ==
> =
> Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> 
> Email: [EMAIL PROTECTED] 
> WWW  : www.camdenfamily.com/morpheus 
> Yahoo IM : morpheus
> 
> "My ally is the Force, and a powerful ally it is." - Yoda 
> 
> > -Original Message-
> > From: Randell B Adkins [mailto:[EMAIL PROTECTED]] 
> > Sent: Monday, December 23, 2002 8:11 AM
> > To: CF-Talk
> > Subject: RE: DateFormat in CFMX
> > 
> > 
> > In this case, English (US).
> > 
> > But could be lets say English (New Zealand)
> > or really any other Locale.
> > 
> > Would using the LSDateFormat function be better
> > if the Locale could vary?
> > 
> > 
> > 
> > >>> [EMAIL PROTECTED] 12/23/02 09:05AM >>>
> > What locale are you under?
> > 
> > ==
> > =
> > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> > 
> > Email: [EMAIL PROTECTED] 
> > WWW  : www.camdenfamily.com/morpheus 
> > Yahoo IM : morpheus
> > 
> > "My ally is the Force, and a powerful ally it is." - Yoda
> > 
> > > -Original Message-
> > > From: Randell B Adkins [mailto:[EMAIL PROTECTED]] 
> > > Sent: Monday, December 23, 2002 7:53 AM
> > > To: CF-Talk
> > > Subject: Re: DateFormat in CFMX
> > > 
> > > 
> > > After checking the archives, there did seem to be
> > > an issue with this.
> > > 
> > > Rob Rohan - Did you determine what the problem was as
> > > well as a fix?
> > > 
> > > Sean A Corfield - Any ideas on it? It works on some 
> directories but 
> > > noth others.
> > > 
> > > Thanks!!
> > > 
> > > 
> > > 
> > > >>> [EMAIL PROTECTED] 12/23/02 08:32AM >>>
> > > Is there a dateformat issue using CFMX that was addressed in some

> > > update/patch, or some means??
> > > 
> > > When doing a directory listing, some directories will report fine

> > > and format the date accordingly using the DateFormat function. 
> > > However, there are some directories which will throw an error. 
> > > Nothing special regarding the directory.
> > > 
> > > Thanks in Advance!
> > > 
> > > 
> > > 
> > > 
> > > 
> > 
> > 
> 
> 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



RE: DateFormat in CFMX

2002-12-23 Thread Alex Hubner
I have similiar problems with LSCurrency and DateFormat. As far as I can say, these 
formating problems are all 
related to the JVM itself, not the ColdFusion Server.

Some references:

<http://webforums.macromedia.com/coldfusion/messageview.cfm?
catid=144&threadid=454691&highlight_key=y&keyword1=LSCurrency>

<http://webforums.macromedia.com/coldfusion/messageview.cfm?
catid=144&threadid=435590&highlight_key=y&keyword1=LSCurrency>

[]'s
Alex


On Mon, 23 Dec 2002 09:53:27 -0500, "Randell B Adkins" <[EMAIL PROTECTED]> escreveu :

> De: "Randell B Adkins" <[EMAIL PROTECTED]>
> Data: Mon, 23 Dec 2002 09:53:27 -0500
> Para: CF-Talk <[EMAIL PROTECTED]>
> Assunto: RE: DateFormat in CFMX
> 
> Actually I found the resolution based on the Locale of the system.
> 
> I had to use the LSDateFormat/ LSTimeFormat in conjunction with 
> the parseDateTime.
> 
> So far my testing has came back positive. More testing to go!
> 
> Thanks Ray!
> 
> 
> 
> >>> [EMAIL PROTECTED] 12/23/02 09:35AM >>>
> Of course, if you actually convert the string to a real date ob, it
> works just fine...
> 
> #dateformat(parseDateTime('Tuesday, 17 December 2002
> 05:21:09
> PM EST'))#
> 
> ===
> Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> 
> Email: [EMAIL PROTECTED] 
> WWW  : www.camdenfamily.com/morpheus 
> Yahoo IM : morpheus
> 
> "My ally is the Force, and a powerful ally it is." - Yoda 
> 
> > -Original Message-
> > From: Randell B Adkins [mailto:[EMAIL PROTECTED]] 
> > Sent: Monday, December 23, 2002 8:26 AM
> > To: CF-Talk
> > Subject: RE: DateFormat in CFMX
> > 
> > 
> > I agree. Running the line as you did, does result in an error 
> > with the class: java.util.Date
> > 
> > Can anyone from Macromedia chime in on this???
> > 
> > 
> > 
> > >>> [EMAIL PROTECTED] 12/23/02 09:21AM >>>
> > I'm not saying it could cause an issue, but it does affect 
> > how the date parsing works - I'm just trying to narrow down 
> > the posibilities. As it stands, I ran this:
> > 
> > #dateformat('Tuesday, 17 December 2002 05:21:09 PM 
> > EST')#
> > 
> > and got an error on my box. Looks like it may be a bug unless 
> > I'm missing something.
> > 
> > ==
> > =
> > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> > 
> > Email: [EMAIL PROTECTED] 
> > WWW  : www.camdenfamily.com/morpheus 
> > Yahoo IM : morpheus
> > 
> > "My ally is the Force, and a powerful ally it is." - Yoda 
> > 
> > > -Original Message-
> > > From: Randell B Adkins [mailto:[EMAIL PROTECTED]] 
> > > Sent: Monday, December 23, 2002 8:11 AM
> > > To: CF-Talk
> > > Subject: RE: DateFormat in CFMX
> > > 
> > > 
> > > In this case, English (US).
> > > 
> > > But could be lets say English (New Zealand)
> > > or really any other Locale.
> > > 
> > > Would using the LSDateFormat function be better
> > > if the Locale could vary?
> > > 
> > > 
> > > 
> > > >>> [EMAIL PROTECTED] 12/23/02 09:05AM >>>
> > > What locale are you under?
> > > 
> > > ==
> > > =
> > > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> > > 
> > > Email: [EMAIL PROTECTED] 
> > > WWW  : www.camdenfamily.com/morpheus 
> > > Yahoo IM : morpheus
> > > 
> > > "My ally is the Force, and a powerful ally it is." - Yoda
> > > 
> > > > -Original Message-
> > > > From: Randell B Adkins [mailto:[EMAIL PROTECTED]] 
> > > > Sent: Monday, December 23, 2002 7:53 AM
> > > > To: CF-Talk
> > > > Subject: Re: DateFormat in CFMX
> > > > 
> > > > 
> > > > After checking the archives, there did seem to be
> > > > an issue with this.
> > > > 
> > > > Rob Rohan - Did you determine what the problem was as
> > > > well as a fix?
> > > > 
> > > > Sean A Corfield - Any ideas on it? It works on some 
> > directories but 
> > > > noth others.
> > > > 
> > > > Thanks!!
> > > > 
> > > > 
> > > > 
> > > > >>> [EMAIL PROTECTED] 12/23/02 08:32AM >>>
> > > > Is there a dateformat issue using CFMX that was addressed in some
> 
> > > > update/patch, or some means??
> > > > 
> > > > When doing a directory listing, some directories will report fine
> 
> > > > and format the date accordingly using the DateFormat function. 
> > > > However, there are some directories which will throw an error. 
> > > > Nothing special regarding the directory.
> > > > 
> > > > Thanks in Advance!
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > 
> > > 
> > 
> > 
> 
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



RE: DateFormat in CFMX

2002-12-23 Thread Randell B Adkins
For the DateFormat issue, what worked for me was
the combining of two functions:
LSDateFormat(parseDateTime(dtString,"mm/dd/")

Now sure about the LSCurrency. 

What error are you receiving with LSCurrency?
Becareful as there is also LSEuroCurrency


>>> [EMAIL PROTECTED] 12/23/02 10:23AM >>>
I have similiar problems with LSCurrency and DateFormat. As far as I
can say, these formating problems are all 
related to the JVM itself, not the ColdFusion Server.

Some references:

<http://webforums.macromedia.com/coldfusion/messageview.cfm? 
catid=144&threadid=454691&highlight_key=y&keyword1=LSCurrency>

<http://webforums.macromedia.com/coldfusion/messageview.cfm? 
catid=144&threadid=435590&highlight_key=y&keyword1=LSCurrency>

[]'s
Alex


On Mon, 23 Dec 2002 09:53:27 -0500, "Randell B Adkins"
<[EMAIL PROTECTED]> escreveu :

> De: "Randell B Adkins" <[EMAIL PROTECTED]>
> Data: Mon, 23 Dec 2002 09:53:27 -0500
> Para: CF-Talk <[EMAIL PROTECTED]>
> Assunto: RE: DateFormat in CFMX
> 
> Actually I found the resolution based on the Locale of the system.
> 
> I had to use the LSDateFormat/ LSTimeFormat in conjunction with 
> the parseDateTime.
> 
> So far my testing has came back positive. More testing to go!
> 
> Thanks Ray!
> 
> 
> 
> >>> [EMAIL PROTECTED] 12/23/02 09:35AM >>>
> Of course, if you actually convert the string to a real date ob, it
> works just fine...
> 
> #dateformat(parseDateTime('Tuesday, 17 December 2002
> 05:21:09
> PM EST'))#
> 
>
===
> Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> 
> Email: [EMAIL PROTECTED] 
> WWW  : www.camdenfamily.com/morpheus 
> Yahoo IM : morpheus
> 
> "My ally is the Force, and a powerful ally it is." - Yoda 
> 
> > -Original Message-
> > From: Randell B Adkins [mailto:[EMAIL PROTECTED]] 
> > Sent: Monday, December 23, 2002 8:26 AM
> > To: CF-Talk
> > Subject: RE: DateFormat in CFMX
> > 
> > 
> > I agree. Running the line as you did, does result in an error 
> > with the class: java.util.Date
> > 
> > Can anyone from Macromedia chime in on this???
> > 
> > 
> > 
> > >>> [EMAIL PROTECTED] 12/23/02 09:21AM >>>
> > I'm not saying it could cause an issue, but it does affect 
> > how the date parsing works - I'm just trying to narrow down 
> > the posibilities. As it stands, I ran this:
> > 
> > #dateformat('Tuesday, 17 December 2002 05:21:09 PM 
> > EST')#
> > 
> > and got an error on my box. Looks like it may be a bug unless 
> > I'm missing something.
> > 
> > ======
> > =
> > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> > 
> > Email: [EMAIL PROTECTED] 
> > WWW  : www.camdenfamily.com/morpheus 
> > Yahoo IM : morpheus
> > 
> > "My ally is the Force, and a powerful ally it is." - Yoda 
> > 
> > > -Original Message-
> > > From: Randell B Adkins [mailto:[EMAIL PROTECTED]] 
> > > Sent: Monday, December 23, 2002 8:11 AM
> > > To: CF-Talk
> > > Subject: RE: DateFormat in CFMX
> > > 
> > > 
> > > In this case, English (US).
> > > 
> > > But could be lets say English (New Zealand)
> > > or really any other Locale.
> > > 
> > > Would using the LSDateFormat function be better
> > > if the Locale could vary?
> > > 
> > > 
> > > 
> > > >>> [EMAIL PROTECTED] 12/23/02 09:05AM >>>
> > > What locale are you under?
> > > 
> > > ==
> > > =
> > > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> > > 
> > > Email: [EMAIL PROTECTED] 
> > > WWW  : www.camdenfamily.com/morpheus 
> > > Yahoo IM : morpheus
> > > 
> > > "My ally is the Force, and a powerful ally it is." - Yoda
> > > 
> > > > -Original Message-
> > > > From: Randell B Adkins [mailto:[EMAIL PROTECTED]] 
> > > > Sent: Monday, December 23, 2002 7:53 AM
> > > > To: CF-Talk
> > > > Subject: Re: DateFormat in CFMX
> > > > 
> > > > 
> > > > After checking the archives, there did seem to be
> > > > an issue with this.
> > > > 
> > > > 

RE: DateFormat in CFMX

2002-12-23 Thread Alex Hubner
Good tip! Thanks.

The issue with the LSCurrency is that it simple do not show it correctly for 
Brazilian. Take a look on this Paul tests:

http://tessaban.tei.or.th/unicode/javaNumbers.cfm

The Brazilian currency should be R$ 404,20 not R$ 404,2

Anyway... just waiting for SUN to fix it.

[]'s!
Alex


On Mon, 23 Dec 2002 10:44:53 -0500, "Randell B Adkins" <[EMAIL PROTECTED]> escreveu :

> De: "Randell B Adkins" <[EMAIL PROTECTED]>
> Data: Mon, 23 Dec 2002 10:44:53 -0500
> Para: CF-Talk <[EMAIL PROTECTED]>
> Assunto: RE: DateFormat in CFMX
> 
> For the DateFormat issue, what worked for me was
> the combining of two functions:
> LSDateFormat(parseDateTime(dtString,"mm/dd/")
> 
> Now sure about the LSCurrency. 
> 
> What error are you receiving with LSCurrency?
> Becareful as there is also LSEuroCurrency
> 
> 
> >>> [EMAIL PROTECTED] 12/23/02 10:23AM >>>
> I have similiar problems with LSCurrency and DateFormat. As far as I
> can say, these formating problems are all 
> related to the JVM itself, not the ColdFusion Server.
> 
> Some references:
> 
> <http://webforums.macromedia.com/coldfusion/messageview.cfm? 
> catid=144&threadid=454691&highlight_key=y&keyword1=LSCurrency>
> 
> <http://webforums.macromedia.com/coldfusion/messageview.cfm? 
> catid=144&threadid=435590&highlight_key=y&keyword1=LSCurrency>
> 
> []'s
> Alex
> 
> 
> On Mon, 23 Dec 2002 09:53:27 -0500, "Randell B Adkins"
> <[EMAIL PROTECTED]> escreveu :
> 
> > De: "Randell B Adkins" <[EMAIL PROTECTED]>
> > Data: Mon, 23 Dec 2002 09:53:27 -0500
> > Para: CF-Talk <[EMAIL PROTECTED]>
> > Assunto: RE: DateFormat in CFMX
> > 
> > Actually I found the resolution based on the Locale of the system.
> > 
> > I had to use the LSDateFormat/ LSTimeFormat in conjunction with 
> > the parseDateTime.
> > 
> > So far my testing has came back positive. More testing to go!
> > 
> > Thanks Ray!
> > 
> > 
> > 
> > >>> [EMAIL PROTECTED] 12/23/02 09:35AM >>>
> > Of course, if you actually convert the string to a real date ob, it
> > works just fine...
> > 
> > #dateformat(parseDateTime('Tuesday, 17 December 2002
> > 05:21:09
> > PM EST'))#
> > 
> >
> =======
> > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> > 
> > Email: [EMAIL PROTECTED] 
> > WWW  : www.camdenfamily.com/morpheus 
> > Yahoo IM : morpheus
> > 
> > "My ally is the Force, and a powerful ally it is." - Yoda 
> > 
> > > -Original Message-
> > > From: Randell B Adkins [mailto:[EMAIL PROTECTED]] 
> > > Sent: Monday, December 23, 2002 8:26 AM
> > > To: CF-Talk
> > > Subject: RE: DateFormat in CFMX
> > > 
> > > 
> > > I agree. Running the line as you did, does result in an error 
> > > with the class: java.util.Date
> > > 
> > > Can anyone from Macromedia chime in on this???
> > > 
> > > 
> > > 
> > > >>> [EMAIL PROTECTED] 12/23/02 09:21AM >>>
> > > I'm not saying it could cause an issue, but it does affect 
> > > how the date parsing works - I'm just trying to narrow down 
> > > the posibilities. As it stands, I ran this:
> > > 
> > > #dateformat('Tuesday, 17 December 2002 05:21:09 PM 
> > > EST')#
> > > 
> > > and got an error on my box. Looks like it may be a bug unless 
> > > I'm missing something.
> > > 
> > > ==
> > > =
> > > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> > > 
> > > Email: [EMAIL PROTECTED] 
> > > WWW  : www.camdenfamily.com/morpheus 
> > > Yahoo IM : morpheus
> > > 
> > > "My ally is the Force, and a powerful ally it is." - Yoda 
> > > 
> > > > -Original Message-
> > > > From: Randell B Adkins [mailto:[EMAIL PROTECTED]] 
> > > > Sent: Monday, December 23, 2002 8:11 AM
> > > > To: CF-Talk
> > > > Subject: RE: DateFormat in CFMX
> > > > 
> > > > 
> > > > In this case, English (US).
> > > > 
> > > > But could be lets say English (New Zealand)
> > > > or really any other Locale.
> > > > 
> > > > 

RE: DateFormat in CFMX

2002-12-23 Thread Rob Rohan
The dataformat issue we had was based on the fact we were using JRE 1.4 (we
think), so if you are not using 1.4 pay me no mind.

For some reason the mask gets pissed sometimes unless there is a space at
the end. For example a mask of "mm/dd/" will say the date is invalid but
a mask of "mm/dd/ " will not. I do not know why the fix works (probably
has to do with some internal date parsing).

This doesn't seem to be fixed in updater 2 and I am not sure if it is an MX
error or a JRE error. I do know the dates changed quite a bit from JRE 1.2
to JRE 1.4 so...


Cheers,
Rob


-Original Message-
From: Randell B Adkins [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 5:53 AM
To: CF-Talk
Subject: Re: DateFormat in CFMX


After checking the archives, there did seem to be
an issue with this.

Rob Rohan - Did you determine what the problem was as
well as a fix?

Sean A Corfield - Any ideas on it? It works on some directories
but noth others.

Thanks!!



>>> [EMAIL PROTECTED] 12/23/02 08:32AM >>>
Is there a dateformat issue using CFMX that was addressed in
some update/patch, or some means??

When doing a directory listing, some directories will report
fine and format the date accordingly using the DateFormat
function. However, there are some directories which will
throw an error. Nothing special regarding the directory.

Thanks in Advance!





~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



Re: DateFormat in CFMX

2002-12-24 Thread Paul Hastings
> The Brazilian currency should be R$ 404,20 not R$ 404,2

thats because all the LS functions now rely on the underlying java. i just
wish they'd dump the "officially" supported locales & just support what the
jre's support. another funny thing i've just noticed, on my thai locale
servers some date parts string functions (DayOfWeekAsString, MonthAsString)
return thai date parts even though the cf locale is us english. this
happened after applying the updaters & w/jre 1.4.1. see
http://tessaban.tei.or.th/testcf/dayofWeek.cfm

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm